game::layer::problems_diff

Type Alias Options

Source
pub type Options = ProblemTypes;

Aliased Type§

struct Options {
    disabled_types: HashSet<ProblemType>,
}

Fields§

§disabled_types: HashSet<ProblemType>

Implementations

Source§

impl ProblemTypes

Source

pub fn new() -> Self

Source

pub fn show(&self, problem: &Problem) -> bool

Source

pub fn to_controls(&self, ctx: &mut EventCtx<'_>) -> Widget

Source

pub fn from_controls(panel: &Panel) -> Self

Trait Implementations

Source§

impl Clone for ProblemTypes

Source§

fn clone(&self) -> ProblemTypes

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl PartialEq for ProblemTypes

Source§

fn eq(&self, other: &ProblemTypes) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for ProblemTypes