Type Alias binrw::BinResult

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

A specialized Result type for binrw operations.

Aliased Type§

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