Trait GetSparseMatrixElementValueTyped

Source
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§

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.

Implementations on Foreign Types§

Source§

impl GetSparseMatrixElementValueTyped<bool> for bool

Source§

impl GetSparseMatrixElementValueTyped<f32> for f32

Source§

impl GetSparseMatrixElementValueTyped<f64> for f64

Source§

impl GetSparseMatrixElementValueTyped<i8> for i8

Source§

impl GetSparseMatrixElementValueTyped<i16> for i16

Source§

impl GetSparseMatrixElementValueTyped<i32> for i32

Source§

impl GetSparseMatrixElementValueTyped<i64> for i64

Source§

impl GetSparseMatrixElementValueTyped<isize> for isize

Source§

impl GetSparseMatrixElementValueTyped<u8> for u8

Source§

impl GetSparseMatrixElementValueTyped<u16> for u16

Source§

impl GetSparseMatrixElementValueTyped<u32> for u32

Source§

impl GetSparseMatrixElementValueTyped<u64> for u64

Source§

impl GetSparseMatrixElementValueTyped<usize> for usize

Implementors§