[][src]Struct includedir_codegen::IncludeDir

pub struct IncludeDir { /* fields omitted */ }

Implementations

impl IncludeDir[src]

pub fn file<P: AsRef<Path>>(self, path: P, comp: Compression) -> IncludeDir[src]

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!.

pub fn add_file<P: AsRef<Path>>(
    &mut self,
    path: P,
    comp: Compression
) -> Result<()>
[src]

Panics

This function panics when CARGO_MANIFEST_DIR or OUT_DIR are not defined.

pub fn dir<P: AsRef<Path>>(self, path: P, comp: Compression) -> IncludeDir[src]

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

pub fn add_dir<P: AsRef<Path>>(
    &mut self,
    path: P,
    comp: Compression
) -> Result<()>
[src]

Panics

This function panics when CARGO_MANIFEST_DIR or OUT_DIR are not defined.

pub fn build(self, out_name: &str) -> Result<()>[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,