Trait AsSoaRef

Source
pub trait AsSoaRef {
    type Item: Soars;

    // Required method
    fn as_soa_ref(&self) -> <Self::Item as Soars>::Ref<'_>;
}
Expand description

Similar to AsRef, but for Soars::Ref.

This is primarily used to provide convenient implementations of standard traits for Slice.

Required Associated Types§

Source

type Item: Soars

The type to get a reference of.

When using the Soars derive macro, this is the type that was derived from and which is the generic parameter of Slice and Soa.

Required Methods§

Source

fn as_soa_ref(&self) -> <Self::Item as Soars>::Ref<'_>

Converts this type to an SoA reference of the associated type.

Implementors§