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