Struct sixtyfps_compilerlib::CompilerConfiguration [−][src]
pub struct CompilerConfiguration { pub embed_resources: bool, pub include_paths: Vec<PathBuf>, pub style: Option<String>, pub open_import_fallback: Option<Rc<dyn Fn(String) -> Pin<Box<dyn Future<Output = Option<Result<String>>>>>>>, }
CompilationConfiguration allows configuring different aspects of the compiler.
Fields
embed_resources: bool
Indicate whether to embed resources such as images in the generated output or whether to retain references to the resources on the file system.
include_paths: Vec<PathBuf>
The compiler will look in these paths for components used in the file to compile.
style: Option<String>
the name of the style. (eg: “native”)
open_import_fallback: Option<Rc<dyn Fn(String) -> Pin<Box<dyn Future<Output = Option<Result<String>>>>>>>
Callback to load import files which is called if the file could not be found
The callback should open the file specified by the given file name and return an future that provides the text content of the file as output.
Implementations
impl CompilerConfiguration
[src]
impl CompilerConfiguration
[src]pub fn new(output_format: OutputFormat) -> Self
[src]
Trait Implementations
impl Clone for CompilerConfiguration
[src]
impl Clone for CompilerConfiguration
[src]fn clone(&self) -> CompilerConfiguration
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl !RefUnwindSafe for CompilerConfiguration
impl !RefUnwindSafe for CompilerConfiguration
impl !Send for CompilerConfiguration
impl !Send for CompilerConfiguration
impl !Sync for CompilerConfiguration
impl !Sync for CompilerConfiguration
impl Unpin for CompilerConfiguration
impl Unpin for CompilerConfiguration
impl !UnwindSafe for CompilerConfiguration
impl !UnwindSafe for CompilerConfiguration