#[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§
Source§impl Clone for StrContextValue
impl Clone for StrContextValue
Source§fn clone(&self) -> StrContextValue
fn clone(&self) -> StrContextValue
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 StrContextValue
impl Debug for StrContextValue
Source§impl Display for StrContextValue
impl Display for StrContextValue
Source§impl From<&'static str> for StrContextValue
impl From<&'static str> for StrContextValue
Source§impl From<char> for StrContextValue
impl From<char> for StrContextValue
Source§impl PartialEq for StrContextValue
impl PartialEq for StrContextValue
impl Eq 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 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