Trait soapy::SoaDeref

source ·
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§

source

type Item: Soapy

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

Object Safety§

This trait is not object safe.

Implementors§