Trait otter_api_tests::shapelib::ResultVoidExt [−]
pub trait ResultVoidExt<T> { pub fn void_unwrap(self) -> T; }
Extensions to Result<T, Void>
Required methods
pub fn void_unwrap(self) -> T
Get the value out of a wrapper.
Implementors
impl<T> ResultVoidExt<T> for Result<T, Void>
pub fn void_unwrap(self) -> T
Get the value out of an always-ok Result.
Never panics, since it is statically known to be Ok.