pub enum ScreenMode {
Inline {
ui_height: u16,
},
InlineAuto {
min_height: u16,
max_height: u16,
},
AltScreen,
}Expand description
Screen mode determines whether we use alternate screen or inline mode.
Variants§
Inline
Inline mode preserves scrollback. UI is anchored at bottom/top.
InlineAuto
Inline mode with automatic UI height based on rendered content.
The measured height is clamped between min_height and max_height.
AltScreen
Alternate screen mode for full-screen applications.
Trait Implementations§
Source§impl Clone for ScreenMode
impl Clone for ScreenMode
Source§fn clone(&self) -> ScreenMode
fn clone(&self) -> ScreenMode
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 ScreenMode
impl Debug for ScreenMode
Source§impl Default for ScreenMode
impl Default for ScreenMode
Source§fn default() -> ScreenMode
fn default() -> ScreenMode
Returns the “default value” for a type. Read more
Source§impl PartialEq for ScreenMode
impl PartialEq for ScreenMode
impl Copy for ScreenMode
impl Eq for ScreenMode
impl StructuralPartialEq for ScreenMode
Auto Trait Implementations§
impl Freeze for ScreenMode
impl RefUnwindSafe for ScreenMode
impl Send for ScreenMode
impl Sync for ScreenMode
impl Unpin for ScreenMode
impl UnwindSafe for ScreenMode
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.