SparseVectorViewOperation

Trait SparseVectorViewOperation 

Source
pub trait SparseVectorViewOperation<T: ?Sized> {
    type Output<'a>
       where Self: 'a;

    // Required method
    fn execute<'a, V: 'a + VectorViewSparse<T> + Clone>(
        self,
        vector: V,
    ) -> Self::Output<'a>
       where Self: 'a;
}
Expand description

Operation that operates on a VectorViewSparse.

Used as a workaround for specialization, together with VectorView::specialize_sparse().

TODO: on next breaking update (unfortunate that I missed 3.0.0), replace this by the more powerful workaround technique as used for finite rings in crate::specialization.

Required Associated Types§

Source

type Output<'a> where Self: 'a

Required Methods§

Source

fn execute<'a, V: 'a + VectorViewSparse<T> + Clone>( self, vector: V, ) -> Self::Output<'a>
where Self: 'a,

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.

Implementors§