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