[−][src]Struct ketos::trace::Trace
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
Auto Trait Implementations
Blanket Implementations
impl<T> AnyValue for T where
T: Any,
[src]
T: Any,
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,