[−][src]Struct tectonic::io::filesystem::FilesystemIo
FilesystemIo is an I/O provider that reads, and optionally writes, files from a given root directory. NOTE: no effort is made to contain I/O within the specified root!! We have an option to disallow absolute paths, but we don't do anything about "../../../...." paths.
Implementations
impl FilesystemIo
[src]
pub fn new(
root: &Path,
writes_allowed: bool,
absolute_allowed: bool,
hidden_input_paths: HashSet<PathBuf>
) -> FilesystemIo
[src]
root: &Path,
writes_allowed: bool,
absolute_allowed: bool,
hidden_input_paths: HashSet<PathBuf>
) -> FilesystemIo
Trait Implementations
impl IoProvider for FilesystemIo
[src]
fn output_open_name(&mut self, name: &OsStr) -> OpenResult<OutputHandle>
[src]
fn output_open_stdout(&mut self) -> OpenResult<OutputHandle>
[src]
fn input_open_name(
&mut self,
name: &OsStr,
_status: &mut dyn StatusBackend
) -> OpenResult<InputHandle>
[src]
&mut self,
name: &OsStr,
_status: &mut dyn StatusBackend
) -> OpenResult<InputHandle>
fn input_open_primary(
&mut self,
_status: &mut dyn StatusBackend
) -> OpenResult<InputHandle>
[src]
&mut self,
_status: &mut dyn StatusBackend
) -> OpenResult<InputHandle>
fn input_open_format(
&mut self,
name: &OsStr,
status: &mut dyn StatusBackend
) -> OpenResult<InputHandle>
[src]
&mut self,
name: &OsStr,
status: &mut dyn StatusBackend
) -> OpenResult<InputHandle>
fn write_format(
&mut self,
_name: &str,
_data: &[u8],
_status: &mut dyn StatusBackend
) -> Result<()>
[src]
&mut self,
_name: &str,
_data: &[u8],
_status: &mut dyn StatusBackend
) -> Result<()>
Auto Trait Implementations
impl RefUnwindSafe for FilesystemIo
impl Send for FilesystemIo
impl Sync for FilesystemIo
impl Unpin for FilesystemIo
impl UnwindSafe for FilesystemIo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsIoProviderMut for T where
T: IoProvider,
[src]
T: IoProvider,
fn as_ioprovider_mut(&mut Self) -> &mut dyn IoProvider
[src]
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>,