[][src]Struct ketos::trace::Trace

pub struct Trace { /* fields omitted */ }

Represents a series of items, beginning with the outermost context and culminating with the context in which an error was generated.

Methods

impl Trace[src]

pub fn new(items: Vec<TraceItem>, expr: Option<Value>) -> Trace[src]

Creates a new Trace from a series of items.

pub fn single(item: TraceItem, expr: Option<Value>) -> Trace[src]

Creates a new Trace from a single item.

pub fn items(&self) -> &[TraceItem][src]

Returns the series of traced items.

pub fn expr(&self) -> Option<&Value>[src]

Returns a borrowed reference to the optional contained expression.

pub fn take_expr(&mut self) -> Option<Value>[src]

Takes the optional contained expression and returns it.

Trait Implementations

impl Clone for Trace[src]

impl NameDisplay for Trace[src]

Auto Trait Implementations

impl !RefUnwindSafe for Trace

impl !Send for Trace

impl !Sync for Trace

impl Unpin for Trace

impl !UnwindSafe for Trace

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,