pub struct InitWire;Trait Implementations§
Source§impl Wire for InitWire
impl Wire for InitWire
Source§const FIXED_SIZE: Option<usize>
const FIXED_SIZE: Option<usize>
The encoded size if every value of this type has the same size.
Source§const MIN_SIZE: usize
const MIN_SIZE: usize
A lower bound on the encoded size, used to reject impossible element counts early.
Source§type Root = [u32; 1]
type Root = [u32; 1]
Lifetime-free state a root
View keeps to rebuild its Ref without
walking the input again, such as a struct’s field offsets.Source§fn verify<'a>(v: &mut Verifier<'a>) -> Result<InitRef<'a>, DecodeError>
fn verify<'a>(v: &mut Verifier<'a>) -> Result<InitRef<'a>, DecodeError>
Checks one value at the verifier’s position and returns its borrowed form.
Source§fn from_root(r: Reader<'_>, offsets: [u32; 1]) -> InitRef<'_>
fn from_root(r: Reader<'_>, offsets: [u32; 1]) -> InitRef<'_>
Rebuilds the borrowed form of a root value spanning exactly
r.Source§fn read_owned(r: &mut Reader<'_>) -> Init
fn read_owned(r: &mut Reader<'_>) -> Init
Reads one verified value as owned, sharing
str and data bytes with the input.Source§fn verify_owned(v: &mut Verifier<'_>) -> Result<Init, DecodeError>
fn verify_owned(v: &mut Verifier<'_>) -> Result<Init, DecodeError>
Checks one value at the verifier’s position and returns it as owned, sharing
str and
data bytes with the input. Read morefn encoded_len(value: &Init) -> usize
fn encode<S: Sink>(value: &Init, out: &mut S)
fn ref_encoded_len(value: InitRef<'_>) -> usize
Auto Trait Implementations§
impl Freeze for InitWire
impl RefUnwindSafe for InitWire
impl Send for InitWire
impl Sync for InitWire
impl Unpin for InitWire
impl UnsafeUnpin for InitWire
impl UnwindSafe for InitWire
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more