Trait StateSetExt

Source
pub trait StateSetExt: 'static {
    // Required methods
    fn add_state(&self, type_: StateType) -> bool;
    fn and_sets<P: IsA<StateSet>>(&self, compare_set: &P) -> Option<StateSet>;
    fn clear_states(&self);
    fn contains_state(&self, type_: StateType) -> bool;
    fn is_empty(&self) -> bool;
    fn or_sets<P: IsA<StateSet>>(&self, compare_set: &P) -> Option<StateSet>;
    fn remove_state(&self, type_: StateType) -> bool;
    fn xor_sets<P: IsA<StateSet>>(&self, compare_set: &P) -> Option<StateSet>;
}

Required Methods§

Source

fn add_state(&self, type_: StateType) -> bool

Source

fn and_sets<P: IsA<StateSet>>(&self, compare_set: &P) -> Option<StateSet>

Source

fn clear_states(&self)

Source

fn contains_state(&self, type_: StateType) -> bool

Source

fn is_empty(&self) -> bool

Source

fn or_sets<P: IsA<StateSet>>(&self, compare_set: &P) -> Option<StateSet>

Source

fn remove_state(&self, type_: StateType) -> bool

Source

fn xor_sets<P: IsA<StateSet>>(&self, compare_set: &P) -> Option<StateSet>

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§