Enum slint_build::EmbedResourcesKind
source · [−]pub enum EmbedResourcesKind {
AsAbsolutePath,
EmbedFiles,
EmbedForSoftwareRenderer,
}
Expand description
How should the slint compiler embed images and fonts
Parameter of CompilerConfiguration::embed_resources()
Variants
AsAbsolutePath
Paths specified in .slint files are made absolute and the absolute paths will be used at run-time to load the resources from the file system.
EmbedFiles
The raw files in .slint files are embedded in the application binary.
EmbedForSoftwareRenderer
File names specified in .slint files will be loaded by the Slint compiler, optimized for use with the software renderer and embedded in the application binary.
Trait Implementations
sourceimpl Clone for EmbedResourcesKind
impl Clone for EmbedResourcesKind
sourcefn clone(&self) -> EmbedResourcesKind
fn clone(&self) -> EmbedResourcesKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl PartialEq<EmbedResourcesKind> for EmbedResourcesKind
impl PartialEq<EmbedResourcesKind> for EmbedResourcesKind
sourcefn eq(&self, other: &EmbedResourcesKind) -> bool
fn eq(&self, other: &EmbedResourcesKind) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl StructuralPartialEq for EmbedResourcesKind
Auto Trait Implementations
impl RefUnwindSafe for EmbedResourcesKind
impl Send for EmbedResourcesKind
impl Sync for EmbedResourcesKind
impl Unpin for EmbedResourcesKind
impl UnwindSafe for EmbedResourcesKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more