Enum DocumentClassOptions

Source
pub enum DocumentClassOptions {
Show 21 variants A4Paper, A5Paper, B5Paper, ExecutivePaper, LegalPaper, LetterPaper, Draft, Final, Fleqn, Landscape, Leqno, OpenBib, TitlePage, NotTitlePage, OneColumn, TwoColumn, OneSide, TwoSide, OpenRight, OpenAny, Custom(String),
}
Expand description

Represents options for LaTeX document classes.

§Example

use rusttex::DocumentClassOptions;

let option = DocumentClassOptions::A4Paper;

Generated LaTeX:

\documentclass[a4paper]{article}

Variants§

§

A4Paper

Represents the a4paper option for document classes in LaTeX.

§

A5Paper

Represents the a5paper option for document classes in LaTeX.

§

B5Paper

Represents the b5paper option for document classes in LaTeX.

§

ExecutivePaper

Represents the executivepaper option for document classes in LaTeX.

§

LegalPaper

Represents the legalpaper option for document classes in LaTeX.

§

LetterPaper

Represents the letterpaper option for document classes in LaTeX.

§

Draft

Represents the draft option for document classes in LaTeX.

§

Final

Represents the final option for document classes in LaTeX.

§

Fleqn

Represents the fleqn option for document classes in LaTeX.

§

Landscape

Represents the landscape option for document classes in LaTeX.

§

Leqno

Represents the leqno option for document classes in LaTeX.

§

OpenBib

Represents the openbib option for document classes in LaTeX.

§

TitlePage

Represents the titlepage option for document classes in LaTeX.

§

NotTitlePage

Represents the nottitlepage option for document classes in LaTeX.

§

OneColumn

Represents the onecolumn option for document classes in LaTeX.

§

TwoColumn

Represents the twocolumn option for document classes in LaTeX.

§

OneSide

Represents the oneside option for document classes in LaTeX.

§

TwoSide

Represents the twoside option for document classes in LaTeX.

§

OpenRight

Represents the openright option for document classes in LaTeX.

§

OpenAny

Represents the openany option for document classes in LaTeX.

§

Custom(String)

Represents a custom option for document classes in LaTeX.

Trait Implementations§

Source§

impl ToString for DocumentClassOptions

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.