pub trait GetSparseMatrixElementValueTyped<T: ValueType + Default> {
// Required methods
fn element_value(
matrix: &SparseMatrix<T>,
row_index: RowIndex,
column_index: ColumnIndex,
) -> Result<Option<T>, SparseLinearAlgebraError>;
fn element_value_or_default(
matrix: &SparseMatrix<T>,
row_index: RowIndex,
column_index: ColumnIndex,
) -> Result<T, SparseLinearAlgebraError>;
fn element_value_at_coordinate(
matrix: &SparseMatrix<T>,
coordinate: &impl GetCoordinateIndices,
) -> Result<Option<T>, SparseLinearAlgebraError>;
fn element_value_or_default_at_coordinate(
matrix: &SparseMatrix<T>,
coordinate: &impl GetCoordinateIndices,
) -> Result<T, SparseLinearAlgebraError>;
}
Required Methods§
fn element_value( matrix: &SparseMatrix<T>, row_index: RowIndex, column_index: ColumnIndex, ) -> Result<Option<T>, SparseLinearAlgebraError>
fn element_value_or_default( matrix: &SparseMatrix<T>, row_index: RowIndex, column_index: ColumnIndex, ) -> Result<T, SparseLinearAlgebraError>
fn element_value_at_coordinate( matrix: &SparseMatrix<T>, coordinate: &impl GetCoordinateIndices, ) -> Result<Option<T>, SparseLinearAlgebraError>
fn element_value_or_default_at_coordinate( matrix: &SparseMatrix<T>, coordinate: &impl GetCoordinateIndices, ) -> Result<T, SparseLinearAlgebraError>
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.