pub struct ConstU32<const V: u32>;Expand description
A const u32.
Deserialization fails if the value is not V.
Trait Implementations§
Source§impl<'de, const V: u32> Deserialize<'de> for ConstU32<V>
impl<'de, const V: u32> Deserialize<'de> for ConstU32<V>
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<const V: u32> Ord for ConstU32<V>
impl<const V: u32> Ord for ConstU32<V>
1.21.0 · 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
Source§impl<const V: u32> PartialOrd for ConstU32<V>
impl<const V: u32> PartialOrd for ConstU32<V>
impl<const V: u32> Copy for ConstU32<V>
impl<const V: u32> Eq for ConstU32<V>
impl<const V: u32> StructuralPartialEq for ConstU32<V>
Auto Trait Implementations§
impl<const V: u32> Freeze for ConstU32<V>
impl<const V: u32> RefUnwindSafe for ConstU32<V>
impl<const V: u32> Send for ConstU32<V>
impl<const V: u32> Sync for ConstU32<V>
impl<const V: u32> Unpin for ConstU32<V>
impl<const V: u32> UnwindSafe for ConstU32<V>
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