[][src]Struct silkworm_err::ErrorBuilder

pub struct ErrorBuilder { /* fields omitted */ }

Implementations

impl ErrorBuilder[src]

pub fn new<S: Display>(level: Level, msg: S) -> Self[src]

pub fn done(self) -> Error[src]

pub fn msg<S: Display>(&mut self, msg: S) -> &mut Self[src]

pub fn map_msg<F>(&mut self, op: F) -> &mut Self where
    F: FnOnce(&mut String), 
[src]

pub fn span<S: Into<ErrorSpan>>(&mut self, span: S) -> &mut Self[src]

pub fn annotate_span<S: Display>(&mut self, span: Span, msg: S) -> &mut Self[src]

pub fn maybe_annotate_span<S: Display>(
    &mut self,
    span: Option<Span>,
    msg: S
) -> &mut Self
[src]

pub fn maybe_annotate_span_with<F, S>(
    &mut self,
    span: Option<Span>,
    msg: F
) -> &mut Self where
    F: FnOnce() -> S,
    S: Display
[src]

Trait Implementations

impl Clone for ErrorBuilder[src]

impl Debug for ErrorBuilder[src]

Auto Trait Implementations

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.