[][src]Struct nom_trace::Trace

pub struct Trace {
    pub events: Vec<TraceEvent>,
    pub level: usize,
    pub active: bool,
}

the main structure hoding trace events. It is stored in a thread level storage variable

Fields

events: Vec<TraceEvent>level: usizeactive: bool

Methods

impl Trace[src]

pub fn new() -> Self[src]

pub fn reset(&mut self)[src]

pub fn print(&self)[src]

pub fn open<T>(&mut self, input: T, location: &'static str) where
    Input: From<T>, 
[src]

pub fn close<I, O: Debug, E: Debug>(
    &mut self,
    input: I,
    location: &'static str,
    result: &IResult<I, O, E>
) where
    Input: From<I>, 
[src]

Auto Trait Implementations

impl !Sync for Trace

impl Unpin for Trace

impl !Send for Trace

impl UnwindSafe for Trace

impl RefUnwindSafe for Trace

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]