pub trait HasView<B> {
type ViewType;
}Expand description
A type which has a corresponding view-type over any buffer B.
Required Associated Types§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Implementors§
Source§impl<B: ByteSlice, T: HasView<B> + NextLayer> HasView<B> for Repeated<T>
impl<B: ByteSlice, T: HasView<B> + NextLayer> HasView<B> for Repeated<T>
type ViewType = RepeatedView<B, T>
Source§impl<B: ByteSlice, T> HasView<ObjectSlice<B, T>> for Vec<T>
impl<B: ByteSlice, T> HasView<ObjectSlice<B, T>> for Vec<T>
type ViewType = ObjectSlice<B, T>
Source§impl<O: HasView<V, ViewType = B>, B, V> HasView<V> for BoxedHeader<O, B>
Available on crate feature alloc only.
impl<O: HasView<V, ViewType = B>, B, V> HasView<V> for BoxedHeader<O, B>
Available on crate feature
alloc only.