[−][src]Struct mdbook::theme::Theme
The Theme struct should be used instead of the static variables because
the new() method will look if the user has a theme directory in their
source folder and use the users theme instead of the default.
You should only ever use the static variables directly if you want to override the user's theme with the defaults.
Fields
index: Vec<u8>header: Vec<u8>chrome_css: Vec<u8>general_css: Vec<u8>print_css: Vec<u8>variables_css: Vec<u8>favicon: Vec<u8>js: Vec<u8>highlight_css: Vec<u8>tomorrow_night_css: Vec<u8>ayu_highlight_css: Vec<u8>highlight_js: Vec<u8>clipboard_js: Vec<u8>Methods
impl Theme[src]
pub fn new<P: AsRef<Path>>(theme_dir: P) -> Self[src]
Creates a Theme from the given theme_dir.
If a file is found in the theme dir, it will override the default version.
Trait Implementations
Auto Trait Implementations
impl Unpin for Theme
impl Sync for Theme
impl Send for Theme
impl UnwindSafe for Theme
impl RefUnwindSafe for Theme
Blanket Implementations
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>, [src]
V: MultiLane<T>,