#[non_exhaustive]pub struct HtmlOptions {
pub default_resources: bool,
}Expand description
The settings convert_to_html_with takes. Default is what
convert_to_html does. Start from HtmlOptions::default() and use its
builder methods so future options remain backwards-compatible:
use latexml::api::{HtmlOptions, convert_to_html_with};
let options = HtmlOptions::default().with_default_resources(false);
let html = convert_to_html_with(r"\documentclass{article}\begin{document}Hi\end{document}", &options)?;Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.default_resources: boolLink and copy the bundled CSS/JS (true, Perl defaultresources). With no
destination the files land in the working directory; false is the
--nodefaultresources equivalent: no links to them, nothing written (a remote
https://… stylesheet a binding requires stays linked, OD #1249).
Implementations§
Source§impl HtmlOptions
impl HtmlOptions
Sourcepub fn with_default_resources(self, default_resources: bool) -> Self
pub fn with_default_resources(self, default_resources: bool) -> Self
Set whether to link and copy the bundled CSS/JS resources (--defaultresources /
--nodefaultresources).
Trait Implementations§
Source§impl Clone for HtmlOptions
impl Clone for HtmlOptions
Source§impl Debug for HtmlOptions
impl Debug for HtmlOptions
Auto Trait Implementations§
impl Freeze for HtmlOptions
impl RefUnwindSafe for HtmlOptions
impl Send for HtmlOptions
impl Sync for HtmlOptions
impl Unpin for HtmlOptions
impl UnsafeUnpin for HtmlOptions
impl UnwindSafe for HtmlOptions
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