Skip to main content

BinResult

Type Alias BinResult 

Source
pub type BinResult<T> = Result<T, Error>;
Expand description

A specialized Result type for binrw operations.

Aliased Type§

pub enum BinResult<T> {
    Ok(T),
    Err(Error),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Error)

Contains the error value

Trait Implementations§

Source§

impl<T> ContextExt for BinResult<T>

Source§

fn with_context<Frame: Into<BacktraceFrame>>(self, frame: Frame) -> Self

Adds a new context frame to the error, consuming the original error.
Source§

fn with_message(self, message: impl Into<Cow<'static, str>>) -> Self

Adds a new frame of context to the error with the given message, consuming the original error. Read more