pub struct TranscriptRenderer<'a> { /* private fields */ }Expand description
Pure, width-aware transcript renderer.
Implementations§
Source§impl<'a> TranscriptRenderer<'a>
impl<'a> TranscriptRenderer<'a>
pub fn new(model: &'a TranscriptModel, capabilities: ColorCapabilities) -> Self
Sourcepub fn lines(&self, width: u16) -> Vec<HyperlinkLine>
pub fn lines(&self, width: u16) -> Vec<HyperlinkLine>
Render visible lines and semantic hyperlink annotations at width.
Sourcepub fn render_buffer(&self, area: Rect, buffer: &mut Buffer)
pub fn render_buffer(&self, area: Rect, buffer: &mut Buffer)
Render into a Ratatui buffer and attach OSC-8 metadata after layout so terminal control bytes never participate in width calculations.
Sourcepub fn render_tail_buffer(&self, area: Rect, buffer: &mut Buffer)
pub fn render_tail_buffer(&self, area: Rect, buffer: &mut Buffer)
Render the newest transcript rows, preserving their hyperlink annotations. The real app follows the tail, so this must not project annotations from rows that were clipped above the viewport.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TranscriptRenderer<'a>
impl<'a> RefUnwindSafe for TranscriptRenderer<'a>
impl<'a> Send for TranscriptRenderer<'a>
impl<'a> Sync for TranscriptRenderer<'a>
impl<'a> Unpin for TranscriptRenderer<'a>
impl<'a> UnsafeUnpin for TranscriptRenderer<'a>
impl<'a> UnwindSafe for TranscriptRenderer<'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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more