ObjectFlagAccess

Trait ObjectFlagAccess 

Source
pub trait ObjectFlagAccess {
    // Required methods
    fn set_flag(&self, sub: u8);
    fn get_flag(&self, sub: u8) -> bool;
    fn clear(&self);
}
Expand description

Trait for accessing object flags

Required Methods§

Source

fn set_flag(&self, sub: u8)

Set the flag for the specified sub object

The flag is set on the currently active flag set

Source

fn get_flag(&self, sub: u8) -> bool

Read the flag for the specified object

The flag is read from the currently inactive flag set, i.e. the flag value from before the last sync toggle is returned

Source

fn clear(&self)

Clear all flags in the currently active flag set

Implementors§