pub struct Document {
pub metadata: Metadata,
/* private fields */
}Expand description
The king of the land. The Document type is where you start.
Has macro support.
Also contains a restriction on the latex commands you use - you can’t use one without
declaring it. Atypical of this crate, this particular feature prevents a latex error.
Fields§
§metadata: MetadataImplementations§
Source§impl Document
impl Document
pub fn new(class: DocumentClass) -> Self
pub fn get_command(&self, cmd: &str) -> TexResult<Command>
pub fn scratch(&mut self)
pub fn new_command(&mut self, c: Command)
pub fn new_component(&mut self, new: Component)
pub fn set_md(&mut self, title: &str, author: &[&str])
pub fn new_package(&mut self, new: Package)
pub fn enable_graphicx(&mut self, path: &str)
pub fn disable_graphicx(&mut self)
pub fn enable_hyperref(&mut self)
pub fn disable_hyperref(&mut self)
pub fn push_gpath(&mut self, path: &str)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Document
impl RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnwindSafe for Document
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 more