Struct tf_asset_loader::Loader
source · pub struct Loader { /* private fields */ }
Implementations§
source§impl Loader
impl Loader
sourcepub fn new() -> Result<Self, LoaderError>
pub fn new() -> Result<Self, LoaderError>
Create the loader
pub fn add_source<S: AssetSource + 'static>(&mut self, source: S)
pub fn exists(&self, name: &str) -> Result<bool, LoaderError>
pub fn load(&self, name: &str) -> Result<Option<Vec<u8>>, LoaderError>
pub fn find_in_paths(&self, name: &str, paths: &[String]) -> Option<String>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Loader
impl !Send for Loader
impl !Sync for Loader
impl Unpin for Loader
impl !UnwindSafe for Loader
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