pub struct Span<Idx: Unsigned + Copy> {
pub start: Idx,
pub len: Idx,
}Expand description
An integer range who’s length is always at least zero.
Fields§
§start: IdxThe index of the first element.
len: IdxThe number of elements in the range.
Implementations§
Trait Implementations§
Source§impl<Idx: Ord + Unsigned + Copy> Ord for Span<Idx>
impl<Idx: Ord + Unsigned + Copy> Ord for Span<Idx>
Source§impl<Idx: PartialOrd + Unsigned + Copy> PartialOrd for Span<Idx>
impl<Idx: PartialOrd + Unsigned + Copy> PartialOrd for Span<Idx>
impl<Idx: Copy + Unsigned + Copy> Copy for Span<Idx>
impl<Idx: Eq + Unsigned + Copy> Eq for Span<Idx>
impl<Idx: Unsigned + Copy> StructuralPartialEq for Span<Idx>
Auto Trait Implementations§
impl<Idx> Freeze for Span<Idx>where
Idx: Freeze,
impl<Idx> RefUnwindSafe for Span<Idx>where
Idx: RefUnwindSafe,
impl<Idx> Send for Span<Idx>where
Idx: Send,
impl<Idx> Sync for Span<Idx>where
Idx: Sync,
impl<Idx> Unpin for Span<Idx>where
Idx: Unpin,
impl<Idx> UnwindSafe for Span<Idx>where
Idx: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more