pub enum NonEmpty {}
Expand description
Length marker for range/index known to not be empty.
Trait Implementations§
Source§impl Ord for NonEmpty
impl Ord for NonEmpty
Source§impl PartialOrd for NonEmpty
impl PartialOrd for NonEmpty
impl Copy for NonEmpty
impl Eq for NonEmpty
impl StructuralPartialEq for NonEmpty
Auto Trait Implementations§
impl Freeze for NonEmpty
impl RefUnwindSafe for NonEmpty
impl Send for NonEmpty
impl Sync for NonEmpty
impl Unpin for NonEmpty
impl UnwindSafe for NonEmpty
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, Array> TrustedItem<&Array> for T
impl<T, Array> TrustedItem<&Array> for T
type Unit = <T as TrustedItem<Array>>::Unit
Source§fn vet<'id, I>(
idx: I,
container: &Container<'id, &Array>,
) -> Result<Index<'id, I, Unknown>, IndexError>where
I: Idx,
fn vet<'id, I>(
idx: I,
container: &Container<'id, &Array>,
) -> Result<Index<'id, I, Unknown>, IndexError>where
I: Idx,
Vet an index for being on item boundaries. Read more
Source§impl<T> TrustedItem<[T]> for T
impl<T> TrustedItem<[T]> for T
type Unit = T
Source§fn vet<'id, I>(
idx: I,
container: &Container<'id, [T]>,
) -> Result<Index<'id, I, Unknown>, IndexError>where
I: Idx,
fn vet<'id, I>(
idx: I,
container: &Container<'id, [T]>,
) -> Result<Index<'id, I, Unknown>, IndexError>where
I: Idx,
Vet an index for being on item boundaries. Read more
Source§impl<T, Array> TrustedItem<Box<Array>> for T
impl<T, Array> TrustedItem<Box<Array>> for T
type Unit = <T as TrustedItem<Array>>::Unit
Source§fn vet<'id, I>(
idx: I,
container: &Container<'id, Box<Array>>,
) -> Result<Index<'id, I, Unknown>, IndexError>where
I: Idx,
fn vet<'id, I>(
idx: I,
container: &Container<'id, Box<Array>>,
) -> Result<Index<'id, I, Unknown>, IndexError>where
I: Idx,
Vet an index for being on item boundaries. Read more
Source§impl<T> TrustedItem<Vec<T>> for Twhere
T: TrustedItem<[T]>,
impl<T> TrustedItem<Vec<T>> for Twhere
T: TrustedItem<[T]>,
type Unit = <T as TrustedItem<[T]>>::Unit
Source§fn vet<'id, I>(
idx: I,
container: &Container<'id, Vec<T>>,
) -> Result<Index<'id, I, Unknown>, IndexError>where
I: Idx,
fn vet<'id, I>(
idx: I,
container: &Container<'id, Vec<T>>,
) -> Result<Index<'id, I, Unknown>, IndexError>where
I: Idx,
Vet an index for being on item boundaries. Read more