pub struct IgnoreContentProvider;Expand description
A provider that loads nothing.
Useful for an extension that should be recognised but skipped.
Trait Implementations§
Source§impl<S> ScriptContentProvider<S> for IgnoreContentProvider
impl<S> ScriptContentProvider<S> for IgnoreContentProvider
Source§fn load(&mut self, _: &str) -> Result<Option<S>, Box<dyn Error>>
fn load(&mut self, _: &str) -> Result<Option<S>, Box<dyn Error>>
Loads and parses one unit, or returns
None when there is nothing to
load.Source§fn join_paths(
&self,
parent: &str,
relative: &str,
) -> Result<String, Box<dyn Error>>
fn join_paths( &self, parent: &str, relative: &str, ) -> Result<String, Box<dyn Error>>
Resolves an import path written inside
parent.Source§fn unpack_load(
&mut self,
path: &str,
) -> Result<Vec<ScriptContent<T>>, Box<dyn Error>>
fn unpack_load( &mut self, path: &str, ) -> Result<Vec<ScriptContent<T>>, Box<dyn Error>>
Loads a path that may hold several units, such as an archive. Read more
Auto Trait Implementations§
impl Freeze for IgnoreContentProvider
impl RefUnwindSafe for IgnoreContentProvider
impl Send for IgnoreContentProvider
impl Sync for IgnoreContentProvider
impl Unpin for IgnoreContentProvider
impl UnsafeUnpin for IgnoreContentProvider
impl UnwindSafe for IgnoreContentProvider
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