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