pub struct IndexU8<const N: u8>(/* private fields */);Expand description
This struct implements Indexable and allows all values in 0..N
Implementations§
Trait Implementations§
Source§impl<'de, const N: u8> Deserialize<'de> for IndexU8<N>
impl<'de, const N: u8> Deserialize<'de> for IndexU8<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: u8> Indexable for IndexU8<N>
impl<const N: u8> Indexable for IndexU8<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<u8>, fn(u8) -> IndexU8<N>>
type Iter = Map<Range<u8>, fn(u8) -> IndexU8<N>>
The type of Iterator that will be returned by
Self::iter()Source§impl<const N: u8> Ord for IndexU8<N>
impl<const N: u8> Ord for IndexU8<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: u8> PartialOrd for IndexU8<N>
impl<const N: u8> PartialOrd for IndexU8<N>
Source§impl<const N: u8> ReverseIndexable for IndexU8<N>
impl<const N: u8> ReverseIndexable for IndexU8<N>
Source§fn from_index(u: usize) -> Self
fn from_index(u: usize) -> Self
Converts from a usize to
Selfimpl<const N: u8> Copy for IndexU8<N>
impl<const N: u8> Eq for IndexU8<N>
impl<const N: u8> StructuralPartialEq for IndexU8<N>
Auto Trait Implementations§
impl<const N: u8> Freeze for IndexU8<N>
impl<const N: u8> RefUnwindSafe for IndexU8<N>
impl<const N: u8> Send for IndexU8<N>
impl<const N: u8> Sync for IndexU8<N>
impl<const N: u8> Unpin for IndexU8<N>
impl<const N: u8> UnwindSafe for IndexU8<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