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 for StrContextValue
impl PartialEq 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 ==
.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