pub struct Settings {Show 14 fields
pub font: Font,
pub inline_code_font: Font,
pub code_block_font: Font,
pub line_height: LineHeight,
pub text_size: Pixels,
pub code_block_size: Pixels,
pub inline_code_size: Pixels,
pub h1_size: Pixels,
pub h2_size: Pixels,
pub h3_size: Pixels,
pub h4_size: Pixels,
pub h5_size: Pixels,
pub h6_size: Pixels,
pub spacing: Pixels,
}Expand description
Configuration controlling Markdown rendering in view.
Fields§
§font: FontThe Font to be applied to basic text.
inline_code_font: FontThe Font to be applied to inline code.
code_block_font: FontThe Font to be applied to code blocks.
line_height: LineHeightThe base line height.
text_size: PixelsThe base text size.
code_block_size: PixelsThe text size used in code blocks.
inline_code_size: PixelsThe text size used in inline code.
h1_size: PixelsThe text size of level 1 heading.
h2_size: PixelsThe text size of level 2 heading.
h3_size: PixelsThe text size of level 3 heading.
h4_size: PixelsThe text size of level 4 heading.
h5_size: PixelsThe text size of level 5 heading.
h6_size: PixelsThe text size of level 6 heading.
spacing: PixelsThe spacing to be used between elements.
Implementations§
Source§impl Settings
impl Settings
Sourcepub fn with_text_size(text_size: impl Into<Pixels>) -> Settings
pub fn with_text_size(text_size: impl Into<Pixels>) -> Settings
Sourcepub fn line_height(self, line_height: impl Into<LineHeight>) -> Settings
pub fn line_height(self, line_height: impl Into<LineHeight>) -> Settings
Sets the LineHeight of the Settings.
Trait Implementations§
impl Copy for Settings
impl StructuralPartialEq for Settings
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnsafeUnpin for Settings
impl UnwindSafe for Settings
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