Struct include_dir::IncludeDirBuilder
[−]
[src]
pub struct IncludeDirBuilder { /* fields omitted */ }
A builder object to give the include_dir()
function a nice fluent API.
Note
It is pretty much assumed that you'll use it in the order described in
include_dir
's docs. Straying from that path will only lead to frustration.
Methods
impl IncludeDirBuilder
[src]
fn as_variable(self, name: &str) -> Self
[src]
Set the variable name to save your assets under.
fn ignore<S: AsRef<str>>(self, name: S) -> Self
[src]
Ignore a directory or file.
Note
For now, this will only match the path relative to the included directory.
fn to_file<P: AsRef<Path>>(self, path: P) -> Result<()>
[src]
Save the file tree to the provided path, performing all necessary error checking.
Trait Implementations
impl Debug for IncludeDirBuilder
[src]
impl Default for IncludeDirBuilder
[src]
fn default() -> IncludeDirBuilder
[src]
Returns the "default value" for a type. Read more