Skip to main content

Ordering

Trait Ordering 

Source
pub trait Ordering {
    // Required methods
    fn order(
        &self,
        pattern: &Pattern,
        target: OrderingTarget,
    ) -> Result<Perm, SparseError>;
    fn name(&self) -> &'static str;
}
Expand description

Fill-reducing orderings. Implementations are stateless policies (invariants (O1)–(O2)).

Required Methods§

Source

fn order( &self, pattern: &Pattern, target: OrderingTarget, ) -> Result<Perm, SparseError>

A permutation of the columns of pattern (for Symmetric, of its rows and columns alike).

Source

fn name(&self) -> &'static str

A short name for logs and tables.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§