pub trait View<'a>: Sized {
// Required method
fn view<R: BufferReader<'a>>(reader: &mut R) -> Result<Self, DecodeError>;
}Required Methods§
fn view<R: BufferReader<'a>>(reader: &mut R) -> Result<Self, DecodeError>
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.
Implementations on Foreign Types§
Source§impl<'a> View<'a> for &'a str
impl<'a> View<'a> for &'a str
fn view<R: BufferReader<'a>>(reader: &mut R) -> Result<Self, DecodeError>
Source§impl<'a> View<'a> for Cow<'a, str>
Available on crate feature alloc only.
impl<'a> View<'a> for Cow<'a, str>
Available on crate feature
alloc only.fn view<R: BufferReader<'a>>(reader: &mut R) -> Result<Self, DecodeError>
Source§impl<'a> View<'a> for Cow<'a, [u8]>
Available on crate feature alloc only.
impl<'a> View<'a> for Cow<'a, [u8]>
Available on crate feature
alloc only.