[−][src]Struct silkworm_err::ErrorBuilder
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]
F: FnOnce(&mut String),
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]
&mut self,
span: Option<Span>,
msg: S
) -> &mut Self
pub fn maybe_annotate_span_with<F, S>(
&mut self,
span: Option<Span>,
msg: F
) -> &mut Self where
F: FnOnce() -> S,
S: Display,
[src]
&mut self,
span: Option<Span>,
msg: F
) -> &mut Self where
F: FnOnce() -> S,
S: Display,
Trait Implementations
impl Clone for ErrorBuilder
[src]
fn clone(&self) -> ErrorBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ErrorBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for ErrorBuilder
impl Send for ErrorBuilder
impl Sync for ErrorBuilder
impl Unpin for ErrorBuilder
impl UnwindSafe for ErrorBuilder
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>,