Struct pygmentize::SvgFormatter
source · pub struct SvgFormatter {
pub line_numbers: bool,
}
Expand description
Format tokens as an SVG graphics file. This formatter is still
experimental. Each line of code is a <text>
element with explicit
x and y coordinates containing <tspan>
elements with the
individual token styles.
See https://pygments.org/docs/formatters/#SvgFormatter for more information.
Fields§
§line_numbers: bool
Output line numbers.
Implementations§
source§impl SvgFormatter
impl SvgFormatter
Trait Implementations§
source§impl Clone for SvgFormatter
impl Clone for SvgFormatter
source§fn clone(&self) -> SvgFormatter
fn clone(&self) -> SvgFormatter
Returns a copy of the value. Read more
1.0.0 · 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 SvgFormatter
impl Debug for SvgFormatter
source§impl Default for SvgFormatter
impl Default for SvgFormatter
source§impl PygmentizeFormatter for SvgFormatter
impl PygmentizeFormatter for SvgFormatter
Auto Trait Implementations§
impl RefUnwindSafe for SvgFormatter
impl Send for SvgFormatter
impl Sync for SvgFormatter
impl Unpin for SvgFormatter
impl UnwindSafe for SvgFormatter
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