term_model::grid

Trait GridCell

Source
pub trait GridCell {
    // Required methods
    fn is_empty(&self) -> bool;
    fn flags(&self) -> &Flags;
    fn flags_mut(&mut self) -> &mut Flags;
    fn fast_eq(&self, other: Self) -> bool;
}

Required Methods§

Source

fn is_empty(&self) -> bool

Source

fn flags(&self) -> &Flags

Source

fn flags_mut(&mut self) -> &mut Flags

Source

fn fast_eq(&self, other: Self) -> bool

Fast equality approximation.

This is a faster alternative to PartialEq, but might report inequal cells as equal.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§