Enum tectonic_io_base::OpenResult [−][src]
pub enum OpenResult<T> { Ok(T), NotAvailable, Err(Error), }
Expand description
A convenience type for file-open operations when “not found” needs to be handled specially.
Variants
The open operation succeeded.
The file was not available.
Err(Error)
Something else went wrong.
Implementations
Returns true if this result is of the NotAvailable variant.
Convert this object into a plain Result, erroring if the item was not available.
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for OpenResult<T>
impl<T> Send for OpenResult<T> where
T: Send,
impl<T> Sync for OpenResult<T> where
T: Sync,
impl<T> Unpin for OpenResult<T> where
T: Unpin,
impl<T> !UnwindSafe for OpenResult<T>