[−][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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,