pub struct ErrorContext { /* private fields */ }
Implementations§
Source§impl<'m> ErrorContext
impl<'m> ErrorContext
pub fn new(base: ContextTag) -> Self
pub fn frame(&self) -> &ContextFrame
pub fn frame_mut(&mut self) -> &mut ContextFrame
pub fn push(&mut self, tag: ContextTag)
pub fn push_continuation( &mut self, tag: ContextTag, frame: Option<ContextFrame>, )
pub fn pop(&mut self) -> ContextFrame
pub fn pop_extend(&mut self)
pub fn take(self) -> ContextFrame
pub fn context(&self) -> ContextTag
pub fn set_start(&mut self, token: &TokenMeta)
pub fn set_end(&mut self, token: &TokenMeta)
pub fn take_debug_symbol(self) -> DebugSymbol
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorContext
impl RefUnwindSafe for ErrorContext
impl Send for ErrorContext
impl Sync for ErrorContext
impl Unpin for ErrorContext
impl UnwindSafe for ErrorContext
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