#[non_exhaustive]pub enum ExportFormat {
Html,
Irc,
Svg,
AnsiTrue,
Ansi256,
Ansi16,
}Expand description
Supported export formats (E012 US2 — FR-005).
The enum is #[non_exhaustive] so additive variants (e.g., terminfo,
PNG via a future raster crate) remain non-breaking under SemVer.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Html
HTML5 <pre><span style="color:#RRGGBB">...</span></pre>.
Irc
mIRC ^C color codes embedded inline with the text.
Svg
SVG 1.1 <text> elements with fill="#RRGGBB".
AnsiTrue
ANSI 24-bit truecolor SGR (\x1b[38;2;R;G;Bm).
Ansi256
ANSI 256-color SGR (\x1b[38;5;Nm).
Ansi16
ANSI 16-color named SGR.
Implementations§
Trait Implementations§
Source§impl Clone for ExportFormat
impl Clone for ExportFormat
Source§fn clone(&self) -> ExportFormat
fn clone(&self) -> ExportFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExportFormat
impl Debug for ExportFormat
Source§impl Hash for ExportFormat
impl Hash for ExportFormat
Source§impl PartialEq for ExportFormat
impl PartialEq for ExportFormat
Source§fn eq(&self, other: &ExportFormat) -> bool
fn eq(&self, other: &ExportFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ExportFormat
impl Eq for ExportFormat
impl StructuralPartialEq for ExportFormat
Auto Trait Implementations§
impl Freeze for ExportFormat
impl RefUnwindSafe for ExportFormat
impl Send for ExportFormat
impl Sync for ExportFormat
impl Unpin for ExportFormat
impl UnsafeUnpin for ExportFormat
impl UnwindSafe for ExportFormat
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