Trait benko::convert::UnwrapBenc[][src]

pub trait UnwrapBenc<T: WrapBenc> {
    fn try_unwrap_benc(self) -> UnwrapResult<T>;
fn unwrap_benc(self) -> T; }

Trait for unwrapping a Benc enum type into the sub type of its value.

Required methods

fn try_unwrap_benc(self) -> UnwrapResult<T>[src]

For when you’re not sure. Returns a result.

fn unwrap_benc(self) -> T[src]

For when you’re sure. Panics on UnwrapError::InvalidVariant.

Loading content...

Implementors

Loading content...