pub struct ExtensionContentProvider<S> { /* private fields */ }
Implementations§
Source§impl<S> ExtensionContentProvider<S>
impl<S> ExtensionContentProvider<S>
pub fn default_extension(self, extension: impl ToString) -> Self
pub fn extension( self, extension: &str, content_provider: impl ScriptContentProvider<S> + 'static, ) -> Self
Trait Implementations§
Source§impl<S> Default for ExtensionContentProvider<S>
impl<S> Default for ExtensionContentProvider<S>
Source§impl<S> ScriptContentProvider<S> for ExtensionContentProvider<S>
impl<S> ScriptContentProvider<S> for ExtensionContentProvider<S>
fn load(&mut self, _: &str) -> Result<Option<S>, Box<dyn Error>>
fn unpack_load( &mut self, path: &str, ) -> Result<Vec<ScriptContent<S>>, Box<dyn Error>>
fn sanitize_path(&self, path: &str) -> Result<String, Box<dyn Error>>
fn join_paths( &self, parent: &str, relative: &str, ) -> Result<String, Box<dyn Error>>
Auto Trait Implementations§
impl<S> Freeze for ExtensionContentProvider<S>
impl<S> !RefUnwindSafe for ExtensionContentProvider<S>
impl<S> !Send for ExtensionContentProvider<S>
impl<S> !Sync for ExtensionContentProvider<S>
impl<S> Unpin for ExtensionContentProvider<S>
impl<S> !UnwindSafe for ExtensionContentProvider<S>
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