Skip to main content

FileState

Struct FileState 

Source
pub struct FileState {
    pub read_files: Vec<ReadFile>,
    pub name_in_progress: bool,
    pub output_dir: Option<PathBuf>,
    pub private_output_dir: bool,
    pub read_log: Vec<FileRecord>,
    pub written: HashMap<PathBuf, Vec<u8>>,
    pub command_line: Vec<u8>,
    pub log_name: Option<PathBuf>,
    pub log_in_texmfoutput: bool,
    pub watched: Vec<PathBuf>,
}
Expand description

File-related state.

Fields§

§read_files: Vec<ReadFile>

\read streams 0–15.

§name_in_progress: bool

Whether a file name is being scanned (name_in_progress).

§output_dir: Option<PathBuf>

The directory for output files (-output-directory).

§private_output_dir: bool

Whether output_dir is retex’s own directory for auxiliary files (.retex/…), not one the user asked for.

§read_log: Vec<FileRecord>

Files read during this pass, in order of first access.

§written: HashMap<PathBuf, Vec<u8>>

Content of files written during this pass, by path.

§command_line: Vec<u8>

The first line given on the command line.

§log_name: Option<PathBuf>

The log file name, once opened.

§log_in_texmfoutput: bool

Whether the log went to TEXMFOUTPUT (the current directory was not writable).

§watched: Vec<PathBuf>

Further files the job depends on that the pass driver does not compare between passes (images, OpenType fonts), for --watch and -recorder.

Implementations§

Source§

impl FileState

Source

pub fn read_open(&self, n: u32) -> bool

Whether \read stream n is open.

Trait Implementations§

Source§

impl Debug for FileState

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for FileState

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> ErasedDestructor for T
where T: 'static,

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 = !

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

fn try_from(value: U) -> Result<T, !>

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.