Enum winnow::error::StrContextValue
source · #[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<StrContextValue> for StrContextValue
impl PartialEq<StrContextValue> for StrContextValue
source§fn eq(&self, other: &StrContextValue) -> bool
fn eq(&self, other: &StrContextValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.