SoaDeref

Trait SoaDeref 

Source
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§

Source

type Item: Soars

The Slice generic parameter

Required Methods§

Source

fn from_slice(slice: &Slice<Self::Item>) -> &Self

Creates a new deref target from the given slice

Source

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.

Implementors§