pub struct TerminalFrame {
pub width: u16,
pub height: u16,
pub cells: Vec<Vec<Cell>>,
pub cursor: Option<CursorPosition>,
pub sequence: u64,
}Expand description
A captured terminal frame - the output of a render cycle
Fields§
§width: u16Frame width in columns
height: u16Frame height in rows
cells: Vec<Vec<Cell>>Cell buffer (row-major: cells[row][col])
cursor: Option<CursorPosition>Cursor position (if visible)
sequence: u64Frame sequence number (for ordering)
Implementations§
Source§impl TerminalFrame
impl TerminalFrame
Sourcepub fn new(width: u16, height: u16) -> TerminalFrame
pub fn new(width: u16, height: u16) -> TerminalFrame
Create a new empty frame
Trait Implementations§
Source§impl Clone for TerminalFrame
impl Clone for TerminalFrame
Source§fn clone(&self) -> TerminalFrame
fn clone(&self) -> TerminalFrame
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 TerminalFrame
impl Debug for TerminalFrame
Source§impl<'de> Deserialize<'de> for TerminalFrame
impl<'de> Deserialize<'de> for TerminalFrame
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TerminalFrame, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TerminalFrame, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TerminalFrame
impl Display for TerminalFrame
Source§impl PartialEq for TerminalFrame
impl PartialEq for TerminalFrame
Source§impl Serialize for TerminalFrame
impl Serialize for TerminalFrame
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for TerminalFrame
impl StructuralPartialEq for TerminalFrame
Auto Trait Implementations§
impl Freeze for TerminalFrame
impl RefUnwindSafe for TerminalFrame
impl Send for TerminalFrame
impl Sync for TerminalFrame
impl Unpin for TerminalFrame
impl UnsafeUnpin for TerminalFrame
impl UnwindSafe for TerminalFrame
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.