pub enum PreambleElement {
UsePackage {
package: String,
argument: Option<String>,
},
UserDefined(String),
}
Expand description
An element of the document’s preamble.
Variants§
UsePackage
Use a package with an optional argument.
UserDefined(String)
An escape hatch for including an arbitrary bit of TeX in a preamble.
Trait Implementations§
Source§impl Clone for PreambleElement
impl Clone for PreambleElement
Source§fn clone(&self) -> PreambleElement
fn clone(&self) -> PreambleElement
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PreambleElement
impl Debug for PreambleElement
Source§impl Extend<PreambleElement> for Preamble
impl Extend<PreambleElement> for Preamble
Source§fn extend<T: IntoIterator<Item = PreambleElement>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = PreambleElement>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl PartialEq for PreambleElement
impl PartialEq for PreambleElement
impl StructuralPartialEq for PreambleElement
Auto Trait Implementations§
impl Freeze for PreambleElement
impl RefUnwindSafe for PreambleElement
impl Send for PreambleElement
impl Sync for PreambleElement
impl Unpin for PreambleElement
impl UnwindSafe for PreambleElement
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