pub struct ConstU16<const V: u16>;Expand description
A const u16.
Deserialization fails if the value is not V.
Trait Implementations§
impl<const V: u16> Copy for ConstU16<V>
Source§impl<'de, const V: u16> Deserialize<'de> for ConstU16<V>
impl<'de, const V: u16> Deserialize<'de> for ConstU16<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
impl<const V: u16> Eq for ConstU16<V>
Source§impl<const V: u16> Ord for ConstU16<V>
impl<const V: u16> Ord for ConstU16<V>
1.21.0 (const: unstable) · 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: u16> PartialOrd for ConstU16<V>
impl<const V: u16> PartialOrd for ConstU16<V>
impl<const V: u16> StructuralPartialEq for ConstU16<V>
Auto Trait Implementations§
impl<const V: u16> Freeze for ConstU16<V>
impl<const V: u16> RefUnwindSafe for ConstU16<V>
impl<const V: u16> Send for ConstU16<V>
impl<const V: u16> Sync for ConstU16<V>
impl<const V: u16> Unpin for ConstU16<V>
impl<const V: u16> UnsafeUnpin for ConstU16<V>
impl<const V: u16> UnwindSafe for ConstU16<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