pub struct Slice<S> {
pub lower: usize,
pub upper: usize,
pub slice: S,
}
Expand description
A struct representing a slice of a range of values.
The lower and upper bounds should be meaningfully set on construction.
Fields§
§lower: usize
§upper: usize
§slice: S
Implementations§
Trait Implementations§
Source§impl<'a, S> Index for &'a Slice<S>
impl<'a, S> Index for &'a Slice<S>
Source§impl<S: Index> Index for Slice<S>
impl<S: Index> Index for Slice<S>
Source§impl<S: IndexMut> IndexMut for Slice<S>
impl<S: IndexMut> IndexMut for Slice<S>
Source§impl<S: Index> Ord for Slice<S>
impl<S: Index> Ord for Slice<S>
Source§impl<S: Index> PartialOrd for Slice<S>where
S::Ref: PartialOrd,
impl<S: Index> PartialOrd for Slice<S>where
S::Ref: PartialOrd,
Source§impl<'a, TC: Container, BC: for<'b> Push<&'b u64>> Push<Slice<<TC as Container>::Borrowed<'a>>> for Vecs<TC, BC>
impl<'a, TC: Container, BC: for<'b> Push<&'b u64>> Push<Slice<<TC as Container>::Borrowed<'a>>> for Vecs<TC, BC>
impl<S: Copy> Copy for Slice<S>
impl<S: Index> Eq for Slice<S>
Auto Trait Implementations§
impl<S> Freeze for Slice<S>where
S: Freeze,
impl<S> RefUnwindSafe for Slice<S>where
S: RefUnwindSafe,
impl<S> Send for Slice<S>where
S: Send,
impl<S> Sync for Slice<S>where
S: Sync,
impl<S> Unpin for Slice<S>where
S: Unpin,
impl<S> UnwindSafe for Slice<S>where
S: 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