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

Ok(T)

The open operation succeeded.

NotAvailable

The file was not available.

Err(Error)

Something else went wrong.

Implementations

Obtain the underlying file object, or panic.

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.