Skip to main content

Surface

Trait Surface 

Source
pub trait Surface {
    // Required method
    fn stamp(&mut self, at: Pos, cell: Cell);
}
Expand description

One write operation and no reader. What a shape draws into.

A fragment cannot inspect what lies beneath it or what a sibling has already written, because Surface gives it nothing to read with — see Complete and fragment in docs/model.md.

Required Methods§

Source

fn stamp(&mut self, at: Pos, cell: Cell)

Writes cell at the absolute position at.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§