Enum StrContext

enum StrContext

Additional parse context for ContextError added via Parser::context

Variants

Label(&'static str)

Description of what is currently being parsed

Expected(StrContextValue)

Grammar item that was expected

Implementations

impl Clone for StrContext

fn clone(self: &Self) -> StrContext

impl Debug for StrContext

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Display for StrContext

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Eq for StrContext

impl Freeze for StrContext

impl PartialEq for StrContext

fn eq(self: &Self, other: &StrContext) -> bool

impl RefUnwindSafe for StrContext

impl Send for StrContext

impl StructuralPartialEq for StrContext

impl Sync for StrContext

impl Unpin for StrContext

impl UnsafeUnpin for StrContext

impl UnwindSafe for StrContext

impl<T> Any for StrContext

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for StrContext

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for StrContext

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for StrContext

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for StrContext

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for StrContext

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for StrContext

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for StrContext

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>