pub struct U32<const VAL: u32>;Expand description
Marker type for passing const VAL: u32 as a type parameter.
§Serde compatibility
When the "serde" feature is enabled,
this type is serialized/deserialized as the VAL const parameter.
Implementations§
Source§impl<const VAL: u32> U32<VAL>
impl<const VAL: u32> U32<VAL>
Trait Implementations§
Source§impl<const VAL: u32> ConstMarker for U32<VAL>
impl<const VAL: u32> ConstMarker for U32<VAL>
Source§impl<const VAL: u32> Ord for U32<VAL>
impl<const VAL: u32> Ord for U32<VAL>
Source§impl<const L: u32, const R: u32> PartialOrd<U32<R>> for U32<L>
impl<const L: u32, const R: u32> PartialOrd<U32<R>> for U32<L>
impl<const VAL: u32> Copy for U32<VAL>
impl<const VAL: u32> Eq for U32<VAL>
Auto Trait Implementations§
impl<const VAL: u32> Freeze for U32<VAL>
impl<const VAL: u32> RefUnwindSafe for U32<VAL>
impl<const VAL: u32> Send for U32<VAL>
impl<const VAL: u32> Sync for U32<VAL>
impl<const VAL: u32> Unpin for U32<VAL>
impl<const VAL: u32> UnwindSafe for U32<VAL>
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