pub struct MatrixType<'a, V: Num, const RC: usize, const C: usize> { /* private fields */ }
Expand description
A structure that supports the Debug and Display traits, borrowing
a matrix; this permits a relatively simple format of a matrix
through using the [new
] constructor of the type
use geo_nd::matrix::{identity2, MatrixType};
assert_eq!( format!("{}", MatrixType::<f32,4,2>::new(&identity2())), "[1,0 0,1]" );
Create a new MatrixType by borrowing an array of Num; this may then be formatted using its Display trait
Formats the value using the given formatter.
Read more
Formats the value using the given formatter.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
Converts the given value to a
String
.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.