Skip to main content

CellScheme

Trait CellScheme 

Source
pub trait CellScheme:
    Debug
    + Send
    + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn centre(&self, cell: u64) -> Option<Vec<f64>>;
}
Expand description

A cell scheme (R4): positions computed from a cell id.

Required Methods§

Source

fn name(&self) -> &str

A short name, such as "healpix", "h3" or "l3bin".

Source

fn centre(&self, cell: u64) -> Option<Vec<f64>>

The centre of a cell, in the scheme’s frame.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§