pub struct ExportContext<'a> {
pub grid: &'a Grid,
pub scrollback: &'a Scrollback,
pub hyperlinks: &'a HyperlinkRegistry,
}Expand description
Bundles borrowed references to terminal data sources for export.
All fields are immutable borrows — the exporter never mutates terminal state.
Fields§
§grid: &'a GridThe visible viewport grid.
scrollback: &'a ScrollbackThe scrollback buffer.
hyperlinks: &'a HyperlinkRegistryThe hyperlink URI registry (for OSC 8 links).
Implementations§
Source§impl<'a> ExportContext<'a>
impl<'a> ExportContext<'a>
Sourcepub fn new(
grid: &'a Grid,
scrollback: &'a Scrollback,
hyperlinks: &'a HyperlinkRegistry,
) -> Self
pub fn new( grid: &'a Grid, scrollback: &'a Scrollback, hyperlinks: &'a HyperlinkRegistry, ) -> Self
Create a new export context.
Auto Trait Implementations§
impl<'a> Freeze for ExportContext<'a>
impl<'a> RefUnwindSafe for ExportContext<'a>
impl<'a> Send for ExportContext<'a>
impl<'a> Sync for ExportContext<'a>
impl<'a> Unpin for ExportContext<'a>
impl<'a> UnwindSafe for ExportContext<'a>
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