pub struct ContextStack { /* private fields */ }Expand description
A stack-allocated collection of error contexts.
Note: Capacity is limited to 3 contexts. Additional contexts are silently ignored. This is a deliberate trade-off for performance in the hot parsing path.
Implementations§
Trait Implementations§
Source§impl Clone for ContextStack
impl Clone for ContextStack
Source§fn clone(&self) -> ContextStack
fn clone(&self) -> ContextStack
Returns a duplicate 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 ContextStack
impl Debug for ContextStack
Source§impl Default for ContextStack
impl Default for ContextStack
Source§fn default() -> ContextStack
fn default() -> ContextStack
Returns the “default value” for a type. Read more
Source§impl PartialEq for ContextStack
impl PartialEq for ContextStack
impl StructuralPartialEq for ContextStack
Auto Trait Implementations§
impl Freeze for ContextStack
impl RefUnwindSafe for ContextStack
impl Send for ContextStack
impl Sync for ContextStack
impl Unpin for ContextStack
impl UnsafeUnpin for ContextStack
impl UnwindSafe for ContextStack
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