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