pub struct ConstBytes<const N: usize>(pub [u8; N]);
Tuple Fields§
§0: [u8; N]
Trait Implementations§
Source§impl<'de, const N: usize> Deserialize<'de> for ConstBytes<N>
impl<'de, const N: usize> Deserialize<'de> for ConstBytes<N>
Source§fn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<const N: usize> Freeze for ConstBytes<N>
impl<const N: usize> RefUnwindSafe for ConstBytes<N>
impl<const N: usize> Send for ConstBytes<N>
impl<const N: usize> Sync for ConstBytes<N>
impl<const N: usize> Unpin for ConstBytes<N>
impl<const N: usize> UnwindSafe for ConstBytes<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