pub trait Concatenate {
type Output;
// Required methods
fn concat_vertical(self, other: Self) -> Result<Self::Output, MathError>;
fn concat_horizontal(self, other: Self) -> Result<Self::Output, MathError>;
}Expand description
Is implemented by matrices to concatenate them.
Required Associated Types§
Required Methods§
Sourcefn concat_vertical(self, other: Self) -> Result<Self::Output, MathError>
fn concat_vertical(self, other: Self) -> Result<Self::Output, MathError>
Concatenates self with other vertically.
Parameters:
other: the other matrix to concatenate withself
§Errors and Failures
- Returns a
MathErrorof typeMismatchingMatrixDimensionif the matrices can not be concatenated due to mismatching dimensions
Sourcefn concat_horizontal(self, other: Self) -> Result<Self::Output, MathError>
fn concat_horizontal(self, other: Self) -> Result<Self::Output, MathError>
Concatenates self with other horizontally.
Parameters:
other: the other matrix to concatenate withself
§Errors and Failures
- Returns a
MathErrorof typeMismatchingMatrixDimensionif the matrices can not be concatenated due to mismatching dimensions
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.