pub struct IncrementalExtractor { /* private fields */ }Expand description
Incremental extractor for terminal text
Tracks frame-by-frame changes in the terminal buffer and extracts stable text operations, filtering out transient UI elements.
Implementations§
Source§impl IncrementalExtractor
impl IncrementalExtractor
Sourcepub fn new(rows: usize, window_lines: Option<usize>) -> Self
pub fn new(rows: usize, window_lines: Option<usize>) -> Self
Create a new extractor
§Arguments
rows- Terminal rows (used to calculate default window size)window_lines- Optional custom window size (default: rows * 20, min 800)
Sourcepub fn extract<T>(&mut self, term: &Term<T>) -> FrameDelta
pub fn extract<T>(&mut self, term: &Term<T>) -> FrameDelta
Extract frame delta since last call
§Type Parameters
T- Term event listener type (from alacritty_terminal)
Sourcepub fn peek<T>(&self, term: &Term<T>) -> ScreenSnapshot
pub fn peek<T>(&self, term: &Term<T>) -> ScreenSnapshot
Get current screen without updating state
Auto Trait Implementations§
impl Freeze for IncrementalExtractor
impl RefUnwindSafe for IncrementalExtractor
impl Send for IncrementalExtractor
impl Sync for IncrementalExtractor
impl Unpin for IncrementalExtractor
impl UnsafeUnpin for IncrementalExtractor
impl UnwindSafe for IncrementalExtractor
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.