pub enum ActiveScreen {
Normal,
Alternate,
}Expand description
Screen buffer selected for rendering and mutation.
§Examples
use ailloli_ui_terminal_core::{ActiveScreen, TerminalState};
assert_eq!(TerminalState::new().active_screen, ActiveScreen::Normal);Variants§
Normal
Primary buffer whose top-region scrolls can feed scrollback.
Alternate
Ephemeral alternate buffer; its scrolled-off lines are discarded.
Trait Implementations§
Source§impl Clone for ActiveScreen
impl Clone for ActiveScreen
Source§fn clone(&self) -> ActiveScreen
fn clone(&self) -> ActiveScreen
Returns a copy 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 ActiveScreen
impl Debug for ActiveScreen
Source§impl<'de> Deserialize<'de> for ActiveScreen
impl<'de> Deserialize<'de> for ActiveScreen
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 ActiveScreen
impl PartialEq for ActiveScreen
Source§impl Serialize for ActiveScreen
impl Serialize for ActiveScreen
impl Copy for ActiveScreen
impl Eq for ActiveScreen
impl StructuralPartialEq for ActiveScreen
Auto Trait Implementations§
impl Freeze for ActiveScreen
impl RefUnwindSafe for ActiveScreen
impl Send for ActiveScreen
impl Sync for ActiveScreen
impl Unpin for ActiveScreen
impl UnwindSafe for ActiveScreen
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