pub trait SoaDeref {
type Item: Soapy;
// Required methods
fn from_slice(slice: &Slice<Self::Item>) -> &Self;
fn from_slice_mut(slice: &mut Slice<Self::Item>) -> &mut Self;
}
Expand description
Slice
dereferences to this type to provide getters for the individual
fields as slices.
See Soapy::Deref
Required Associated Types§
Required Methods§
sourcefn from_slice(slice: &Slice<Self::Item>) -> &Self
fn from_slice(slice: &Slice<Self::Item>) -> &Self
Creates a new deref target from the given slice
sourcefn from_slice_mut(slice: &mut Slice<Self::Item>) -> &mut Self
fn from_slice_mut(slice: &mut Slice<Self::Item>) -> &mut Self
Creates a new mutable deref target from the given slice
Object Safety§
This trait is not object safe.