pub struct U<N>(/* private fields */);
Expand description
Wrapper around typenum
types to prevent downstream trait implementations.
Trait Implementations§
Source§impl<N: PartialOrd> PartialOrd for U<N>
impl<N: PartialOrd> PartialOrd for U<N>
impl<N: Copy> Copy for U<N>
impl<N> StructuralPartialEq for U<N>
Auto Trait Implementations§
impl<N> Freeze for U<N>where
N: Freeze,
impl<N> RefUnwindSafe for U<N>where
N: RefUnwindSafe,
impl<N> Send for U<N>where
N: Send,
impl<N> Sync for U<N>where
N: Sync,
impl<N> Unpin for U<N>where
N: Unpin,
impl<N> UnwindSafe for U<N>where
N: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'a, S, I> Get<'a, I> for Swhere
I: GetIndex<'a, S>,
impl<'a, S, I> Get<'a, I> for Swhere
I: GetIndex<'a, S>,
type Output = <I as GetIndex<'a, S>>::Output
fn get(&self, idx: I) -> Option<<I as GetIndex<'a, S>>::Output>
Source§fn at(&self, idx: I) -> Self::Output
fn at(&self, idx: I) -> Self::Output
Return a value at the given index. This is provided as the checked
version of
get
that will panic if the equivalent get
call is None
,
which typically means that the given index is out of bounds. Read moreSource§unsafe fn at_unchecked(&self, idx: I) -> Self::Output
unsafe fn at_unchecked(&self, idx: I) -> Self::Output
Return a value at the given index. Read more