pub trait AsBytes<'a> {
// Required method
fn as_bytes(&self) -> impl Iterator<Item = (u64, &'a [u8])>;
}
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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.