Trait SliceAsULE

trait SliceAsULE
where
    Self: AsULE + Sized

A trait for a type where aligned slices can be cast to unaligned slices.

Auto-implemented on all types implementing EqULE.

Required Methods

fn slice_to_unaligned(slice: &[Self]) -> Option<&[<Self as >::ULE]>

Converts from &[Self] to &[Self::ULE] if possible.

In general, this function returns Some on little-endian and None on big-endian.

Implementors