Trait ckb_types::prelude::FromSliceShouldBeOk
source · [−]pub trait FromSliceShouldBeOk<'r>: Reader<'r> {
fn from_slice_should_be_ok(slice: &'r [u8]) -> Self;
}
Expand description
An alias of from_slice(..)
to mark where we are really have confidence to do unwrap on the result of from_slice(..)
.
Required Methods
sourcefn from_slice_should_be_ok(slice: &'r [u8]) -> Self
fn from_slice_should_be_ok(slice: &'r [u8]) -> Self
Unwraps the result of from_slice(..)
with confidence and we assume that it’s impossible to fail.