Struct anstyle_svg::Term
source · pub struct Term { /* private fields */ }
Expand description
Define the terminal-like settings for rendering outpu
Implementations§
source§impl Term
impl Term
pub const fn new() -> Self
sourcepub const fn palette(self, palette: Palette) -> Self
pub const fn palette(self, palette: Palette) -> Self
Select the color palette for anstyle::AnsiColor
sourcepub const fn background(self, yes: bool) -> Self
pub const fn background(self, yes: bool) -> Self
Toggle default background off with false
sourcepub const fn min_width_px(self, px: usize) -> Self
pub const fn min_width_px(self, px: usize) -> Self
Minimum width for the text
sourcepub fn render_svg(&self, ansi: &str) -> String
pub fn render_svg(&self, ansi: &str) -> String
Render the SVG with the terminal defined
Note: Lines are not wrapped. This is intentional as this attempts to convey the exact output with escape codes translated to SVG elements.
Trait Implementations§
impl Copy for Term
Auto Trait Implementations§
impl RefUnwindSafe for Term
impl Send for Term
impl Sync for Term
impl Unpin for Term
impl UnwindSafe for Term
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