FromBStr

Trait FromBStr 

Source
pub trait FromBStr: Sized {
    type Err;

    // Required method
    fn from_bstr(b: &bstr) -> Result<Self, Self::Err>;
}
Expand description

Parses a value from a &bstr, much like FromStr parses from &str.

Required Associated Types§

Source

type Err

Error type returned from a failed parsing attempt.

Required Methods§

Source

fn from_bstr(b: &bstr) -> Result<Self, Self::Err>

Parses a bstr to return this value.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§