Trait benko::convert::UnwrapBenc [−][src]
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.