Trait lzss::ResultLzssErrorVoidWriteExt
source · pub trait ResultLzssErrorVoidWriteExt<E, T>: Sized {
// Required method
fn void_write_unwrap(self) -> Result<T, E>;
}
Expand description
Conversion from Result<T, LzssError<E, Void>>
to Result<T, E>
.
It removes the statically known LzssError
layer from the Result.
Required Methods§
sourcefn void_write_unwrap(self) -> Result<T, E>
fn void_write_unwrap(self) -> Result<T, E>
Remove the LzssError
layer from the Result.
Implementations on Foreign Types§
source§impl<E, T> ResultLzssErrorVoidWriteExt<E, T> for Result<T, LzssError<E, Void>>
impl<E, T> ResultLzssErrorVoidWriteExt<E, T> for Result<T, LzssError<E, Void>>
source§fn void_write_unwrap(self) -> Result<T, E>
fn void_write_unwrap(self) -> Result<T, E>
Remove the LzssError
layer from the Result.
Never panics, since it is statically known to be Ok.