pub struct Config {Show 21 fields
pub resources_directory: PathBuf,
pub title: String,
pub first_layer_name: String,
pub page_size: (Mm, Mm),
pub margin: (Mm, Mm),
pub default_font: String,
pub bold_font: String,
pub italic_font: String,
pub bold_italic_font: String,
pub mono_font: String,
pub default_font_size: Scale,
pub h1_font_size: Scale,
pub h2_font_size: Scale,
pub h3_font_size: Scale,
pub h4_font_size: Scale,
pub line_spacing: f64,
pub list_indentation: Mm,
pub list_point_offset: Mm,
pub quote_indentation: Mm,
pub code_indentation: Mm,
pub section_spacing: Mm,
}Fields§
§resources_directory: PathBufThe path from which images will be loaded
title: String§first_layer_name: String§page_size: (Mm, Mm)§margin: (Mm, Mm)§default_font: String§bold_font: String§italic_font: String§bold_italic_font: String§mono_font: String§default_font_size: Scale§h1_font_size: Scale§h2_font_size: Scale§h3_font_size: Scale§h4_font_size: Scale§line_spacing: f64§list_indentation: Mm§list_point_offset: Mm§quote_indentation: Mm§code_indentation: MmThe horizontal offset of code blocks
section_spacing: MmThe vertical space between two sections (paragraphs, lists, etc.)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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> 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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().