enum OpenKind<'a> {
Open,
Closed,
Bool(&'a mut bool),
Memory {
set: Option<SetOpenCommand>,
},
}
Expand description
How do we determine if the popup should be open or closed
Variants§
Open
Always open
Closed
Always closed
Bool(&'a mut bool)
Open if the bool is true
Memory
Store the open state via crate::Memory
Fields
§
set: Option<SetOpenCommand>
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for OpenKind<'a>
impl<'a> RefUnwindSafe for OpenKind<'a>
impl<'a> Send for OpenKind<'a>
impl<'a> Sync for OpenKind<'a>
impl<'a> Unpin for OpenKind<'a>
impl<'a> !UnwindSafe for OpenKind<'a>
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