pub struct IndexU16<const N: u16>(/* private fields */);Expand description
This struct implements Indexable and allows all values in 0..N
Implementations§
Trait Implementations§
Source§impl<'de, const N: u16> Deserialize<'de> for IndexU16<N>
impl<'de, const N: u16> Deserialize<'de> for IndexU16<N>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<const N: u16> Indexable for IndexU16<N>
impl<const N: u16> Indexable for IndexU16<N>
Source§const SET_SIZE: usize
const SET_SIZE: usize
The number of bytes it will take to represent this type in a set. Read more
Source§type Iter = Map<Range<u16>, fn(u16) -> IndexU16<N>>
type Iter = Map<Range<u16>, fn(u16) -> IndexU16<N>>
The type of Iterator that will be returned by
Self::iter()Source§impl<const N: u16> Ord for IndexU16<N>
impl<const N: u16> Ord for IndexU16<N>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<const N: u16> PartialOrd for IndexU16<N>
impl<const N: u16> PartialOrd for IndexU16<N>
Source§impl<const N: u16> ReverseIndexable for IndexU16<N>
impl<const N: u16> ReverseIndexable for IndexU16<N>
Source§fn from_index(u: usize) -> Self
fn from_index(u: usize) -> Self
Converts from a usize to
Selfimpl<const N: u16> Copy for IndexU16<N>
impl<const N: u16> Eq for IndexU16<N>
impl<const N: u16> StructuralPartialEq for IndexU16<N>
Auto Trait Implementations§
impl<const N: u16> Freeze for IndexU16<N>
impl<const N: u16> RefUnwindSafe for IndexU16<N>
impl<const N: u16> Send for IndexU16<N>
impl<const N: u16> Sync for IndexU16<N>
impl<const N: u16> Unpin for IndexU16<N>
impl<const N: u16> UnwindSafe for IndexU16<N>
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