Skip to main content

StridableLabel

Trait StridableLabel 

Source
pub trait StridableLabel: ToOwned<Owned: BorrowMut<Self>> {
    type Word: Default + Copy;

    // Required methods
    fn from_stride(stride: &[Self::Word]) -> &Self;
    fn swap_with_stride(&mut self, stride: &mut [Self::Word]);
}
Expand description

A Label that is a view over a slice of an array

Required Associated Types§

Required Methods§

Source

fn from_stride(stride: &[Self::Word]) -> &Self

Source

fn swap_with_stride(&mut self, stride: &mut [Self::Word])

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§