bacon 3.23.0

background rust compiler
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::*;

/// the dialog that may be displayed over the rest of the UI
#[allow(clippy::large_enum_variant)]
pub enum Dialog {
    None,
    Menu(ActionMenu),
}

impl Dialog {
    pub fn is_none(&self) -> bool {
        matches!(self, Self::None)
    }
    pub fn is_some(&self) -> bool {
        !self.is_none()
    }
}