pub enum LiteralKind {
Bool,
Number,
String,
HexString,
UnicodeString,
}
Expand description
LiteralKind
JSON schema
{
"enum": [
"bool",
"number",
"string",
"hexString",
"unicodeString"
]
}
Variants§
Trait Implementations§
Source§impl Clone for LiteralKind
impl Clone for LiteralKind
Source§fn clone(&self) -> LiteralKind
fn clone(&self) -> LiteralKind
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LiteralKind
impl Debug for LiteralKind
Source§impl<'de> Deserialize<'de> for LiteralKind
impl<'de> Deserialize<'de> for LiteralKind
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 From<&LiteralKind> for LiteralKind
impl From<&LiteralKind> for LiteralKind
Source§fn from(value: &LiteralKind) -> Self
fn from(value: &LiteralKind) -> Self
Converts to this type from the input type.
Source§impl FromStr for LiteralKind
impl FromStr for LiteralKind
Source§impl Hash for LiteralKind
impl Hash for LiteralKind
Source§impl Ord for LiteralKind
impl Ord for LiteralKind
Source§fn cmp(&self, other: &LiteralKind) -> Ordering
fn cmp(&self, other: &LiteralKind) -> Ordering
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 PartialEq for LiteralKind
impl PartialEq for LiteralKind
Source§impl PartialOrd for LiteralKind
impl PartialOrd for LiteralKind
Source§impl Serialize for LiteralKind
impl Serialize for LiteralKind
Source§impl ToString for LiteralKind
impl ToString for LiteralKind
Source§impl TryFrom<&String> for LiteralKind
impl TryFrom<&String> for LiteralKind
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for LiteralKind
impl TryFrom<&str> for LiteralKind
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for LiteralKind
impl TryFrom<String> for LiteralKind
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl Copy for LiteralKind
impl Eq for LiteralKind
impl StructuralPartialEq for LiteralKind
Auto Trait Implementations§
impl Freeze for LiteralKind
impl RefUnwindSafe for LiteralKind
impl Send for LiteralKind
impl Sync for LiteralKind
impl Unpin for LiteralKind
impl UnwindSafe for LiteralKind
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