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