Struct ansi_to_html::Opts
source · pub struct Opts { /* private fields */ }
Expand description
Customizes the behavior of convert_with_opts()
By default this will:
- Escape special HTML characters (
<>&'"
) prior to conversion. - Optimizes to minimize the number of generated HTML tags.
- Uses hardcoded colors.
Implementations§
source§impl Opts
impl Opts
sourcepub fn skip_escape(self, skip: bool) -> Self
pub fn skip_escape(self, skip: bool) -> Self
Avoids escaping special HTML characters prior to conversion.
sourcepub fn skip_optimize(self, skip: bool) -> Self
pub fn skip_optimize(self, skip: bool) -> Self
Skips removing some useless HTML tags.
sourcepub fn four_bit_var_prefix(self, prefix: Option<String>) -> Self
pub fn four_bit_var_prefix(self, prefix: Option<String>) -> Self
Adds a custom prefix for the CSS variables used for all the 4-bit colors.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Opts
impl Send for Opts
impl Sync for Opts
impl Unpin for Opts
impl UnwindSafe for Opts
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