Skip to main content

CellGrid

Struct CellGrid 

Source
pub struct CellGrid {
    pub deg: f64,
    pub sets: Array2<Vec<u16>>,
    pub dominant: Array2<u16>,
    pub tallies: Array2<Vec<(u16, u32)>>,
}
Expand description

Cell arrays are [row, col]-indexed and iterate row-major, the same order the primary table serializes in.

Fields§

§deg: f64§sets: Array2<Vec<u16>>

The sorted candidate feature ids per cell, from the edge walk; an empty set means no ring passes through the cell.

§dominant: Array2<u16>

The dominant zone per cell from subcell ownership, or NO_ZONE if nothing filled the cell.

§tallies: Array2<Vec<(u16, u32)>>

The per-cell subcell ownership tallies, mapping a candidate id to the number of subcells it owns.

Implementations§

Source§

impl CellGrid

Source

pub fn ncols(&self) -> usize

Source

pub fn nrows(&self) -> usize

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.