pub enum ToggleType {
None,
Checkmark,
Radio,
}Expand description
How a MenuNode::Item can be toggled.
Variants§
None
The entry can’t be toggled.
Checkmark
The entry can be toggled independently, like a checkbox.
Radio
The entry is part of a group where only one entry is toggled at a time, like a radio button.
Trait Implementations§
Source§impl Clone for ToggleType
impl Clone for ToggleType
impl Copy for ToggleType
Source§impl Debug for ToggleType
impl Debug for ToggleType
impl Eq for ToggleType
Source§impl PartialEq for ToggleType
impl PartialEq for ToggleType
impl StructuralPartialEq for ToggleType
Auto Trait Implementations§
impl Freeze for ToggleType
impl RefUnwindSafe for ToggleType
impl Send for ToggleType
impl Sync for ToggleType
impl Unpin for ToggleType
impl UnsafeUnpin for ToggleType
impl UnwindSafe for ToggleType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more