Struct rust_texas::document::Document
source · 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) -> Result<Command, Box<dyn Error>>
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 push_gpath(&mut self, path: &str)
Trait Implementations§
Auto Trait Implementations§
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