Function octseq::builder::infallible
source ยท pub fn infallible<T, E: Into<Infallible>>(src: Result<T, E>) -> T
Expand description
Erases an error for infallible results.
This function can be used in place of the still unstable
Result::into_ok
for operations on infallible octets builders.
If you perform multiple operations, with_infallible
allows you to
use the question mark operator on them before erasing the error.