Enum cognitive_frames::Mode
[−]
[src]
pub enum Mode { Root, Display { id: i32, }, Workspace { is_active: bool, }, Container, Leaf, }
Defines mode of the frame.
Variants
Root
Display
Fields of Display
id: i32 |
Workspace
Fields of Workspace
is_active: bool |
Container
Leaf
Methods
impl Mode
[src]
fn is_display(&self) -> bool
Returns true
if mode is Display
, false
otherwise.
fn is_workspace(&self) -> bool
Returns true
if mode is Workspace
, false
otherwise.
fn is_leaf(&self) -> bool
Returns true
if mode is Leaf
, false
otherwise.
Trait Implementations
impl Clone for Mode
[src]
fn clone(&self) -> Mode
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more