Enum StrContextValue
#[non_exhaustive]pub enum StrContextValue {
CharLiteral(char),
StringLiteral(&'static str),
Description(&'static str),
}Expand description
See StrContext
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CharLiteral(char)
A char token
StringLiteral(&'static str)
A &str token
Description(&'static str)
A description of what was being parsed
Trait Implementations§
§impl Clone for StrContextValue
impl Clone for StrContextValue
§fn clone(&self) -> StrContextValue
fn clone(&self) -> StrContextValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for StrContextValue
impl Debug for StrContextValue
§impl Display for StrContextValue
impl Display for StrContextValue
impl Eq for StrContextValue
§impl From<&'static str> for StrContextValue
impl From<&'static str> for StrContextValue
§fn from(inner: &'static str) -> StrContextValue
fn from(inner: &'static str) -> StrContextValue
Converts to this type from the input type.
Source§impl From<StrContextValue> for StringContext
impl From<StrContextValue> for StringContext
Source§fn from(value: StrContextValue) -> Self
fn from(value: StrContextValue) -> Self
Converts to this type from the input type.
§impl From<char> for StrContextValue
impl From<char> for StrContextValue
§fn from(inner: char) -> StrContextValue
fn from(inner: char) -> StrContextValue
Converts to this type from the input type.
§impl PartialEq for StrContextValue
impl PartialEq for StrContextValue
impl StructuralPartialEq for StrContextValue
Auto Trait Implementations§
impl Freeze for StrContextValue
impl RefUnwindSafe for StrContextValue
impl Send for StrContextValue
impl Sync for StrContextValue
impl Unpin for StrContextValue
impl UnsafeUnpin for StrContextValue
impl UnwindSafe for StrContextValue
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