pub struct DefaultStyleSheet;Expand description
The default style set
This style sheet will be used by default if the user does not provide their own implementation.
Styles are:
- H1: white on cyan, bold, underlined
- H2: cyan, bold
- H3: cyan, bold, italic
- H4-H6: light cyan, italic
- code: white on black
- link: blue, underlined
- blockquote: green
- metadata block: light yellow
Trait Implementations§
Source§impl Clone for DefaultStyleSheet
impl Clone for DefaultStyleSheet
Source§fn clone(&self) -> DefaultStyleSheet
fn clone(&self) -> DefaultStyleSheet
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 moreSource§impl Debug for DefaultStyleSheet
impl Debug for DefaultStyleSheet
Source§impl Default for DefaultStyleSheet
impl Default for DefaultStyleSheet
Source§fn default() -> DefaultStyleSheet
fn default() -> DefaultStyleSheet
Returns the “default value” for a type. Read more
Source§impl StyleSheet for DefaultStyleSheet
impl StyleSheet for DefaultStyleSheet
Source§fn code(&self) -> Style
fn code(&self) -> Style
Style for inline
code spans and fenced code blocks when syntax highlighting is disabled.Source§fn blockquote(&self) -> Style
fn blockquote(&self) -> Style
Base style applied to blockquotes (
> prefix and body text).Source§fn heading_meta(&self) -> Style
fn heading_meta(&self) -> Style
Style for heading attribute metadata appended to the heading text.
Source§fn metadata_block(&self) -> Style
fn metadata_block(&self) -> Style
Style for metadata blocks (front matter).
impl Copy for DefaultStyleSheet
Auto Trait Implementations§
impl Freeze for DefaultStyleSheet
impl RefUnwindSafe for DefaultStyleSheet
impl Send for DefaultStyleSheet
impl Sync for DefaultStyleSheet
impl Unpin for DefaultStyleSheet
impl UnwindSafe for DefaultStyleSheet
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> 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