pub trait Split<T> {
// Required methods
fn split(&self) -> [T; 2];
fn concat(lhs: &T, rhs: &T) -> Self;
fn upper(&self) -> T;
fn lower(&self) -> T;
fn set_upper(&mut self, val: &T) -> &mut Self;
fn set_lower(&mut self, val: &T) -> &mut Self;
}
Expand description
Split an object onto two part that can be concatenated or accessed separately
It aims to be the upper and lower parts of a vector or the upper diagonal and lower diagonal parts of a matrix.
Required Methods§
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.