[−][src]Struct tectonic::io::setup::IoSetupBuilder
The IoSetupBuilder provides a convenient builder interface for specifying the I/O setup.
Implementations
impl IoSetupBuilder
[src]
pub fn primary_input_path<P: AsRef<Path>>(&mut self, path: P) -> &mut Self
[src]
Sets the path for the primary input (i.e. the main .tex file).
If other functions that set the primary input mode are called (e.g.
IoSetupBuilder::primary_input_stdin
, the setting will be
overridden.
pub fn primary_input_stdin(&mut self) -> &mut Self
[src]
Configures us to read the primary input (i.e. the main .tex file) from stdin.
If other functions that set the primary input mode are called (e.g.
IoSetupBuilder::primary_input_path
, the setting will be
overridden.
pub fn primary_input_buffer(&mut self, buf: Vec<u8>) -> &mut Self
[src]
Configures us to read the primary input (i.e. the main .tex file) from an in-memory buffer.
If other functions that set the primary input mode are called (e.g.
IoSetupBuilder::primary_input_path
, the setting will be
overridden.
pub fn filesystem_root<P: AsRef<Path>>(&mut self, path: P) -> &mut Self
[src]
Sets the path for the filesystem root.
This should probably not actually be the root of the entire filesystem; rather, it is a path where the TeX engine will look for included files.
pub fn format_cache_path<P: AsRef<Path>>(&mut self, path: P) -> &mut Self
[src]
Sets the path for the format cache.
The IoSetup created from this object will cache format files if the
primary bundle has been specified (by calling self.bundle()
). This
call sets the filesystem path where format files are cached. If left
unset, it defaults to the filesystem root, which is probably not what
you want.
pub fn bundle<T: 'static + Bundle>(&mut self, bundle: T) -> &mut Self
[src]
Adds a bundle to the I/O configuration.
pub fn use_genuine_stdout(&mut self, setting: bool) -> &mut Self
[src]
Determines whether to use stdout.
If this is set to false, I/O that was destined to stdout is instead redirected to the
memory I/O layer (where it can be examined using the mem
field on IoSetup
).
pub fn hide_path<P: AsRef<Path>>(&mut self, path: P) -> &mut Self
[src]
Marks a path as hidden, meaning that the filesystem layer will pretend it doesn't exist.
pub fn create(self, status: &mut dyn StatusBackend) -> Result<IoSetup>
[src]
Trait Implementations
impl Default for IoSetupBuilder
[src]
Auto Trait Implementations
impl !RefUnwindSafe for IoSetupBuilder
impl !Send for IoSetupBuilder
impl !Sync for IoSetupBuilder
impl Unpin for IoSetupBuilder
impl !UnwindSafe for IoSetupBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,