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