[−][src]Struct includedir_codegen::IncludeDir
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]
&mut self,
path: P,
comp: Compression
) -> Result<()>
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]
&mut self,
path: P,
comp: Compression
) -> Result<()>
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
impl RefUnwindSafe for IncludeDir
impl Send for IncludeDir
impl Sync for IncludeDir
impl Unpin for IncludeDir
impl UnwindSafe for IncludeDir
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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, 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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,