pub struct ConstU32<T, const N: u32>(/* 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: u32> MyDeserialize<'de> for ConstU32<T, N>
impl<'de, T, const N: u32> MyDeserialize<'de> for ConstU32<T, N>
Source§impl<T, const N: u32> MySerialize for ConstU32<T, N>
impl<T, const N: u32> MySerialize for ConstU32<T, N>
impl<T: Copy, const N: u32> Copy for ConstU32<T, N>
impl<T: Eq, const N: u32> Eq for ConstU32<T, N>
impl<T, const N: u32> StructuralPartialEq for ConstU32<T, N>
Auto Trait Implementations§
impl<T, const N: u32> Freeze for ConstU32<T, N>
impl<T, const N: u32> RefUnwindSafe for ConstU32<T, N>where
T: RefUnwindSafe,
impl<T, const N: u32> Send for ConstU32<T, N>where
T: Send,
impl<T, const N: u32> Sync for ConstU32<T, N>where
T: Sync,
impl<T, const N: u32> Unpin for ConstU32<T, N>where
T: Unpin,
impl<T, const N: u32> UnwindSafe for ConstU32<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