pub trait View<'a>: Sized {
type View;
type ListView;
// Required methods
fn unpack_view(u: &mut Unpacker<'a>) -> Option<Self::View>;
fn unpack_list_view(u: &mut Unpacker<'a>) -> Option<Self::ListView>;
}Expand description
A type read as a view of a frame: what it is borrowed (View), and what
a list of it is (ListView).
Required Associated Types§
Required Methods§
fn unpack_view(u: &mut Unpacker<'a>) -> Option<Self::View>
fn unpack_list_view(u: &mut Unpacker<'a>) -> Option<Self::ListView>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".