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