pub struct IncludeDir { /* private fields */ }

Implementations

Add a single file to the binary. With Gzip compression, the file will be encoded to OUT_DIR first. For chaining, it’s not sensible to return a Result. If any to-be-included files can’t be found, or encoded, this function will panic!.

Panics

This function panics when CARGO_MANIFEST_DIR or OUT_DIR are not defined.

Add a whole directory recursively to the binary. This function calls file, and therefore will panic! on missing files.

Panics

This function panics when CARGO_MANIFEST_DIR or OUT_DIR are not defined.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.