pub struct FormatOptions {
pub column_delimiter: String,
pub row_delimiter: String,
}Expand description
FormatOptions controls the parsing and string formatting of matrices.
Fields§
§column_delimiter: StringThis element, which can be the empty string, will be present between each column, but not at the start or end of each row.
row_delimiter: StringThis element, which must not be the empty string, will delimit the rows of the matrix.
Implementations§
Source§impl FormatOptions
impl FormatOptions
Sourcepub fn parse_matrix<T, I>(
&self,
text_matrix: &str,
parse_entry: fn(&str) -> T,
) -> Result<DenseMatrix<T, I>>where
T: 'static,
I: Coordinate,
pub fn parse_matrix<T, I>(
&self,
text_matrix: &str,
parse_entry: fn(&str) -> T,
) -> Result<DenseMatrix<T, I>>where
T: 'static,
I: Coordinate,
parse_matrix takes a text representation of a matrix and a converter function and returns a DenseMatrix representing the same matrix. The number of parsed entries in each row must be the same.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FormatOptions
impl RefUnwindSafe for FormatOptions
impl Send for FormatOptions
impl Sync for FormatOptions
impl Unpin for FormatOptions
impl UnwindSafe for FormatOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more