pub struct MarkdownStyle {Show 26 fields
pub h1_icon: &'static str,
pub h2_icon: &'static str,
pub h3_icon: &'static str,
pub h4_icon: &'static str,
pub h5_icon: &'static str,
pub h6_icon: &'static str,
pub h1_fg: Color,
pub h1_bg: Color,
pub h2_fg: Color,
pub h2_bg: Color,
pub h3_fg: Color,
pub h3_bg: Color,
pub bullet_l1: &'static str,
pub bullet_l2: &'static str,
pub bullet_l3: &'static str,
pub code_block_border: bool,
pub code_block_bg: Color,
pub inline_code_bg: Color,
pub inline_code_fg: Color,
pub quote_icon: &'static str,
pub quote_fg: Color,
pub quote_bg: Color,
pub callout_note_icon: &'static str,
pub callout_tip_icon: &'static str,
pub callout_warning_icon: &'static str,
pub callout_caution_icon: &'static str,
}Available on crate feature
markdown only.Expand description
Configuration for markdown rendering styles
Fields§
§h1_icon: &'static str§h2_icon: &'static str§h3_icon: &'static str§h4_icon: &'static str§h5_icon: &'static str§h6_icon: &'static str§h1_fg: Color§h1_bg: Color§h2_fg: Color§h2_bg: Color§h3_fg: Color§h3_bg: Color§bullet_l1: &'static str§bullet_l2: &'static str§bullet_l3: &'static str§code_block_border: bool§code_block_bg: Color§inline_code_bg: Color§inline_code_fg: Color§quote_icon: &'static str§quote_fg: Color§quote_bg: Color§callout_note_icon: &'static str§callout_tip_icon: &'static str§callout_warning_icon: &'static str§callout_caution_icon: &'static strTrait Implementations§
Source§impl Clone for MarkdownStyle
impl Clone for MarkdownStyle
Source§fn clone(&self) -> MarkdownStyle
fn clone(&self) -> MarkdownStyle
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for MarkdownStyle
impl RefUnwindSafe for MarkdownStyle
impl Send for MarkdownStyle
impl Sync for MarkdownStyle
impl Unpin for MarkdownStyle
impl UnwindSafe for MarkdownStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more