pub struct AssetConfig {
pub root: String,
pub hot_reload: bool,
}Expand description
Configuration for asset loading.
Fields§
§root: StringRoot directory for assets (default: “assets/”).
hot_reload: boolWhether to enable hot-reload (debug builds only).
Trait Implementations§
Source§impl Clone for AssetConfig
impl Clone for AssetConfig
Source§fn clone(&self) -> AssetConfig
fn clone(&self) -> AssetConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AssetConfig
impl Debug for AssetConfig
Auto Trait Implementations§
impl Freeze for AssetConfig
impl RefUnwindSafe for AssetConfig
impl Send for AssetConfig
impl Sync for AssetConfig
impl Unpin for AssetConfig
impl UnsafeUnpin for AssetConfig
impl UnwindSafe for AssetConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more