AlignSlice

Trait AlignSlice 

Source
pub trait AlignSlice<T>: AsMut<[T]>{
    // Provided methods
    fn align_anchor<A>(&mut self, axis: DVec3, anchor: A) -> &mut Self
       where A: Locate<T> + Clone { ... }
    fn align(&mut self, axis: DVec3) -> &mut Self
       where T: Aabb { ... }
}
Expand description

Align a slice of items

Provided Methods§

Source

fn align_anchor<A>(&mut self, axis: DVec3, anchor: A) -> &mut Self
where A: Locate<T> + Clone,

Align items’ anchors in a given axis, based on the first item.

Source

fn align(&mut self, axis: DVec3) -> &mut Self
where T: Aabb,

Align items’ centers in a given axis, based on the first item.

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§