Trait diffsol::vector::VectorIndex
source · pub trait VectorIndex: Sized + Index<IndexType, Output = IndexType> + Debug {
// Required methods
fn zeros(len: IndexType) -> Self;
fn len(&self) -> IndexType;
fn clone_as_vec(&self) -> Vec<IndexType>;
fn from_slice(slice: &[IndexType]) -> Self;
// Provided method
fn is_empty(&self) -> bool { ... }
}
Required Methods§
fn zeros(len: IndexType) -> Self
fn len(&self) -> IndexType
fn clone_as_vec(&self) -> Vec<IndexType>
fn from_slice(slice: &[IndexType]) -> Self
Provided Methods§
Object Safety§
This trait is not object safe.