pub struct ConstU8<T, const N: u8>(/* private fields */);Expand description
Constant u8 value.
T is an error type if parsed value does not match.
Implementations§
Trait Implementations§
Source§impl<'de, T, const N: u8> MyDeserialize<'de> for ConstU8<T, N>
impl<'de, T, const N: u8> MyDeserialize<'de> for ConstU8<T, N>
Source§impl<T, const N: u8> MySerialize for ConstU8<T, N>
impl<T, const N: u8> MySerialize for ConstU8<T, N>
impl<T: Copy, const N: u8> Copy for ConstU8<T, N>
impl<T: Eq, const N: u8> Eq for ConstU8<T, N>
impl<T, const N: u8> StructuralPartialEq for ConstU8<T, N>
Auto Trait Implementations§
impl<T, const N: u8> Freeze for ConstU8<T, N>
impl<T, const N: u8> RefUnwindSafe for ConstU8<T, N>where
T: RefUnwindSafe,
impl<T, const N: u8> Send for ConstU8<T, N>where
T: Send,
impl<T, const N: u8> Sync for ConstU8<T, N>where
T: Sync,
impl<T, const N: u8> Unpin for ConstU8<T, N>where
T: Unpin,
impl<T, const N: u8> UnwindSafe for ConstU8<T, N>where
T: UnwindSafe,
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