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