Skip to main content

SparseExt

Trait SparseExt 

Source
pub trait SparseExt {
    // Required method
    fn patches(&self) -> Patches;

    // Provided method
    fn resolved_patches(&self) -> Result<Patches, VortexError> { ... }
}
Expand description

Extension trait for accessing patches on SparseArray and ArrayView<'_, Sparse>.

Patches are reconstructed from the array’s slots and stored metadata on each call.

Required Methods§

Source

fn patches(&self) -> Patches

Reconstruct patches from the array’s slots and metadata.

Provided Methods§

Source

fn resolved_patches(&self) -> Result<Patches, VortexError>

Return patches with offset-resolved indices (offset subtracted from each index).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§