pub enum ModalStyle {
Overlay,
DimmedOverlay,
Fullscreen,
}Expand description
How modal dialogs (menus, prompts) render over the terminal stream.
Variants§
Overlay
Draw on top of the live stream without altering its contents.
DimmedOverlay
Overlay with the background stream dimmed.
Fullscreen
Take over the full terminal while active.
Trait Implementations§
Source§impl Clone for ModalStyle
impl Clone for ModalStyle
Source§fn clone(&self) -> ModalStyle
fn clone(&self) -> ModalStyle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModalStyle
impl Debug for ModalStyle
Source§impl Default for ModalStyle
impl Default for ModalStyle
Source§fn default() -> ModalStyle
fn default() -> ModalStyle
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModalStyle
impl<'de> Deserialize<'de> for ModalStyle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ModalStyle
impl PartialEq for ModalStyle
Source§impl Serialize for ModalStyle
impl Serialize for ModalStyle
impl Copy for ModalStyle
impl Eq for ModalStyle
impl StructuralPartialEq for ModalStyle
Auto Trait Implementations§
impl Freeze for ModalStyle
impl RefUnwindSafe for ModalStyle
impl Send for ModalStyle
impl Sync for ModalStyle
impl Unpin for ModalStyle
impl UnsafeUnpin for ModalStyle
impl UnwindSafe for ModalStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.