Enum token_list::ExtensionValue [−][src]
Expand description
The value for a user-defined extension.
Variants
String(String)Tuple Fields of String
0: StringNumber(Number)Tuple Fields of Number
0: NumberBoolean(bool)Tuple Fields of Boolean
0: boolImplementations
If the ExtensionValue is a String, returns the associated str.
Returns None otherwise.
If the ExtensionValue is a Boolean, returns the associated bool.
Returns None otherwise.
If the ExtensionValue is a Number and an i64, returns the
associated i64. Returns None otherwise.
Trait Implementations
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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for ExtensionValue
impl Send for ExtensionValue
impl Sync for ExtensionValue
impl Unpin for ExtensionValue
impl UnwindSafe for ExtensionValue
Blanket Implementations
Mutably borrows from an owned value. Read more