pub struct ByteArray<const N: usize>(pub [u8; N]);Tuple Fields§
§0: [u8; N]Implementations§
Trait Implementations§
impl<const N: usize> Copy for ByteArray<N>
Source§impl<'de, const N: usize> Deserialize<'de> for ByteArray<N>
impl<'de, const N: usize> Deserialize<'de> for ByteArray<N>
Source§fn deserialize<D>(deserializer: D) -> Result<ByteArray<N>, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<ByteArray<N>, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<const N: usize> Eq for ByteArray<N>
Source§impl<const N: usize> Ord for ByteArray<N>
impl<const N: usize> Ord for ByteArray<N>
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<const N: usize> PartialOrd for ByteArray<N>
impl<const N: usize> PartialOrd for ByteArray<N>
impl<const N: usize> StructuralPartialEq for ByteArray<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for ByteArray<N>
impl<const N: usize> RefUnwindSafe for ByteArray<N>
impl<const N: usize> Send for ByteArray<N>
impl<const N: usize> Sync for ByteArray<N>
impl<const N: usize> Unpin for ByteArray<N>
impl<const N: usize> UnsafeUnpin for ByteArray<N>
impl<const N: usize> UnwindSafe for ByteArray<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