pub trait BaseImportOptions: Reflect {
    // Required methods
    fn as_any(&self) -> &dyn Any;
    fn as_any_mut(&mut self) -> &mut dyn Any;
    fn save(&self, path: &Path) -> bool;
}
Expand description

Base type-agnostic trait for resource import options. This trait has automatic implementation for everything that implements ImportOptions trait.

Required Methods§

source

fn as_any(&self) -> &dyn Any

Returns self as any and used for downcasting to a particular type.

source

fn as_any_mut(&mut self) -> &mut dyn Any

Returns self as any and used for downcasting to a particular type.

source

fn save(&self, path: &Path) -> bool

Saves the options to a file at the given path.

Implementors§