pub trait SoaDeref {
type Item: Soars;
// 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 Soars::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
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.