pub trait AlignSlice<T: ShiftTransformExt>: 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§
Sourcefn align_anchor<A>(&mut self, axis: DVec3, anchor: A) -> &mut Self
fn align_anchor<A>(&mut self, axis: DVec3, anchor: A) -> &mut Self
Align items’ anchors 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.