Struct array_map::IndexU16 [−][src]
#[repr(transparent)]#[must_use]pub struct IndexU16<const N: u16>(_);
Expand description
This struct implements Indexable
and allows all values in 0..N
Implementations
Trait Implementations
impl<'de, const N: u16> Deserialize<'de> for IndexU16<N>
[src]
impl<'de, const N: u16> Deserialize<'de> for IndexU16<N>
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl<const N: u16> Indexable for IndexU16<N>
[src]
impl<const N: u16> Indexable for IndexU16<N>
[src]impl<const N: u16> Ord for IndexU16<N>
[src]
impl<const N: u16> Ord for IndexU16<N>
[src]impl<const N: u16> PartialOrd<IndexU16<N>> for IndexU16<N>
[src]
impl<const N: u16> PartialOrd<IndexU16<N>> for IndexU16<N>
[src]fn partial_cmp(&self, other: &IndexU16<N>) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &IndexU16<N>) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<const N: u16> ReverseIndexable for IndexU16<N>
[src]
impl<const N: u16> ReverseIndexable for IndexU16<N>
[src]fn from_index(u: usize) -> Self
[src]
fn from_index(u: usize) -> Self
[src]Converts from a usize to Self
impl<const N: u16> Copy for IndexU16<N>
[src]
impl<const N: u16> Eq for IndexU16<N>
[src]
impl<const N: u16> StructuralEq for IndexU16<N>
[src]
impl<const N: u16> StructuralPartialEq for IndexU16<N>
[src]
Auto Trait Implementations
impl<const N: u16> Send for IndexU16<N>
impl<const N: u16> Sync for IndexU16<N>
impl<const N: u16> Unpin for IndexU16<N>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,