Skip to main content

SparseExt

Trait SparseExt 

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

    // Provided method
    fn resolved_patches(&self) -> VortexResult<Patches> { ... }
}
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) -> VortexResult<Patches>

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".

Implementations on Foreign Types§

Source§

impl SparseExt for Array<Sparse>

Source§

impl SparseExt for ArrayView<'_, Sparse>

Implementors§