Skip to main content

InputDefinitionOptions

Struct InputDefinitionOptions 

Source
pub struct InputDefinitionOptions {
Show 13 fields pub extension: Option<Cow<'static, str>>, pub options: Vec<String>, pub after: Tokens, pub notex: bool, pub noerror: bool, pub noltxml: bool, pub withoptions: Option<Vec<String>>, pub handleoptions: bool, pub as_class: bool, pub raw: bool, pub reloadable: bool, pub at_letter: bool, pub searchpaths_only: bool,
}
Expand description

a configuration for loading LaTeX definition files (such as .sty, .cls, and their bindings)

Fields§

§extension: Option<Cow<'static, str>>

an optional extension (such as “sty”)

§options: Vec<String>

package options to pass into the loaded library

§after: Tokens

Tokens to process after the definition is loaded

§notex: bool

flag to forbid raw TeX sources

§noerror: bool

flag to forbid errors ?

§noltxml: bool

flag to forbid binding dispatch

§withoptions: Option<Vec<String>>

collection of (package) options to process when loading the dependency

§handleoptions: bool

flag to handle options, or ignore them

§as_class: bool

flag to process in .cls mode (default: false)

§raw: bool

flag to indicate reading the file raw in Gullet

§reloadable: bool

flag to allow reloading a previously loaded definitions file

§at_letter: bool

flag: set @ catcode to LETTER during loading (default true). Set to false for packages like xy.tex that need @ to stay as OTHER.

§searchpaths_only: bool

When set, raw-file lookup is restricted to the user-supplied SEARCHPATHS (SOURCEDIRECTORY + graphicspaths), skipping the kpsewhich fallback into system texmf. Matches Perl Package.pm’s searchpaths_only => 1 — enabled by the localrawstyles option to latexml.sty. Perl ref: Package.pm L2135, L2674.

Trait Implementations§

Source§

impl Default for InputDefinitionOptions

Source§

fn default() -> Self

Returns the “default value” for a type. 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.