pub struct ScreenUpdate { /* private fields */ }Expand description
Rendered lines placed at an offset on the screen: each line is preceded
by a cursor move to its row. Port of rich.console.ScreenUpdate.
Implementations§
Trait Implementations§
Source§impl Renderable for ScreenUpdate
impl Renderable for ScreenUpdate
fn rich_render( &self, _console: &Console, _options: &ConsoleOptions, ) -> Vec<Segment>
Source§fn measure(&self, _console: &Console, options: &ConsoleOptions) -> Measurement
fn measure(&self, _console: &Console, options: &ConsoleOptions) -> Measurement
The
(minimum, maximum) cell width this renderable wants. The default
assumes the renderable fills the available width (e.g. Panel, Table);
Text overrides it with its content width so the top-level print path can
shrink to fit. Port of __rich_measure__ / Measurement.get.Source§fn fit_to_measurement(&self) -> bool
fn fit_to_measurement(&self) -> bool
Whether a top-level
Console::print shrinks this renderable to its
measured width. Upstream renders every top-level renderable at the full
console width, so the default is false; an extension may opt in.Auto Trait Implementations§
impl Freeze for ScreenUpdate
impl RefUnwindSafe for ScreenUpdate
impl Send for ScreenUpdate
impl Sync for ScreenUpdate
impl Unpin for ScreenUpdate
impl UnsafeUnpin for ScreenUpdate
impl UnwindSafe for ScreenUpdate
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