pub struct MouthOptions {
pub fordefinitions: bool,
pub at_letter: bool,
pub notes: bool,
pub content: Option<String>,
pub lazy_decode: bool,
pub file_level: bool,
pub foodtype: Option<FoodType>,
pub source: Option<String>,
pub shortsource: Option<String>,
}Fields§
§fordefinitions: bool§at_letter: bool§notes: bool§content: Option<String>§lazy_decode: boolThe string IS a document source (a file handed over as content: the
cortex/in-process API, filecontents, an \openin overlay): keep its
bytes and decode each line lazily under the encoding current when the
line is read, exactly like a file mouth — so the pdfTeX byte mouth (K10)
switched on by a package mid-document reaches the document’s own text.
Internal strings (Tokenize! bodies, \scantokens) stay pre-decoded.
file_level: boolThe mouth reads a FILE — on disk or held in memory (filecontents, an
\openout file): tex.web’s name>17 input level. Its end is an end of
file for a balanced read (runaway, §338-339), whatever foodtype says
about how it is read. Set by Mouth::create’s file paths.
foodtype: Option<FoodType>§source: Option<String>§shortsource: Option<String>Trait Implementations§
Source§impl Debug for MouthOptions
impl Debug for MouthOptions
Auto Trait Implementations§
impl Freeze for MouthOptions
impl RefUnwindSafe for MouthOptions
impl Send for MouthOptions
impl Sync for MouthOptions
impl Unpin for MouthOptions
impl UnsafeUnpin for MouthOptions
impl UnwindSafe for MouthOptions
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