pub trait AsBytes<'a> {
// Required method
fn as_bytes(&self) -> impl Iterator<Item = (u64, &'a [u8])>;
// Provided method
fn length_in_words(&self) -> usize { ... }
}
Expand description
A type that can be viewed as byte slices with lifetime 'a
.
Implementors of this trait almost certainly reference the lifetime 'a
themselves.
Required Methods§
Provided Methods§
sourcefn length_in_words(&self) -> usize
fn length_in_words(&self) -> usize
The number of u64
words required to record self
as aligned bytes.
Object Safety§
This trait is not object safe.