pub struct Screen { /* private fields */ }Expand description
A static snapshot of a terminal screen.
Implementations§
Source§impl Screen
impl Screen
Sourcepub fn to_svg<'s, 'f>(
&'s self,
fonts: &'f [&'f str],
font_metrics: FontMetrics,
) -> impl Display + 'swhere
'f: 's,
pub fn to_svg<'s, 'f>(
&'s self,
fonts: &'f [&'f str],
font_metrics: FontMetrics,
) -> impl Display + 'swhere
'f: 's,
Get a std::fmt::Display that prints an SVG when formatted. Set fonts to specify fonts
to be included in the SVG’s font-family style. font-family always includes monospace.
The SVG is generated once std::fmt::Display::fmt is called; cache the call’s output if you want to use it multiple times.
Auto Trait Implementations§
impl Freeze for Screen
impl RefUnwindSafe for Screen
impl Send for Screen
impl Sync for Screen
impl Unpin for Screen
impl UnwindSafe for Screen
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