pub struct OwnedScreen {
pub text: String,
pub cursor_row: usize,
pub cursor_col: usize,
pub osc_title: Option<String>,
pub osc_progress: Option<String>,
}Expand description
Owned snapshot of a rendered grid. Exists because ScreenView borrows its
visible_text as &str, while the parser yields an owned String.
Fields§
§text: String§cursor_row: usize§cursor_col: usize§osc_title: Option<String>Latest OSC window title (OSC 0/2), captured from the byte stream (E6.1).
A detection region for the manifest engine; None until a title OSC is
seen.
osc_progress: Option<String>Latest OSC 9;4 progress payload, if any (E6.1).
Implementations§
Source§impl OwnedScreen
impl OwnedScreen
Sourcepub fn view(&self) -> ScreenView<'_>
pub fn view(&self) -> ScreenView<'_>
Borrow this snapshot as the read-only ScreenView a detector inspects.
Trait Implementations§
Source§impl Clone for OwnedScreen
impl Clone for OwnedScreen
Source§fn clone(&self) -> OwnedScreen
fn clone(&self) -> OwnedScreen
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OwnedScreen
impl Debug for OwnedScreen
impl Eq for OwnedScreen
Source§impl PartialEq for OwnedScreen
impl PartialEq for OwnedScreen
impl StructuralPartialEq for OwnedScreen
Auto Trait Implementations§
impl Freeze for OwnedScreen
impl RefUnwindSafe for OwnedScreen
impl Send for OwnedScreen
impl Sync for OwnedScreen
impl Unpin for OwnedScreen
impl UnsafeUnpin for OwnedScreen
impl UnwindSafe for OwnedScreen
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.