Skip to main content

CellReader

Trait CellReader 

Source
pub trait CellReader {
    // Required method
    fn cell(&self, at: Pos) -> Option<&Cell>;
}
Expand description

What a caller reads a cell through: one position, answered from the store behind it.

Reading a cell is the whole of what rendering needs, which is what lets render ask a value for its cells without being handed a Buffer and without being able to ask who owns one. Buffer is the reader this crate ships.

Required Methods§

Source

fn cell(&self, at: Pos) -> Option<&Cell>

The cell at the absolute position at, or None if it is undefined.

An undefined cell and a position nothing was ever written at look the same: there is no cell there either way, so there is nothing to distinguish them by.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§