pub struct FileSystemLoader { /* private fields */ }Implementations§
Source§impl FileSystemLoader
impl FileSystemLoader
pub const fn new(base_paths: Vec<PathBuf>) -> FileSystemLoader
pub fn with_path(path: impl Into<PathBuf>) -> FileSystemLoader
pub fn add_path(self, path: impl Into<PathBuf>) -> FileSystemLoader
Trait Implementations§
Source§impl Debug for FileSystemLoader
impl Debug for FileSystemLoader
Source§impl Default for FileSystemLoader
impl Default for FileSystemLoader
Source§fn default() -> FileSystemLoader
fn default() -> FileSystemLoader
Returns the “default value” for a type. Read more
Source§impl TemplateLoader for FileSystemLoader
impl TemplateLoader for FileSystemLoader
fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
source: &'life1 TemplateSource,
) -> Pin<Box<dyn Future<Output = Result<String, TemplateLoaderError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
FileSystemLoader: 'async_trait,
fn can_load(&self, source: &TemplateSource) -> bool
fn load_directory<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<Vec<(String, String)>, TemplateLoaderError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
FileSystemLoader: 'async_trait,
Auto Trait Implementations§
impl Freeze for FileSystemLoader
impl RefUnwindSafe for FileSystemLoader
impl Send for FileSystemLoader
impl Sync for FileSystemLoader
impl Unpin for FileSystemLoader
impl UnwindSafe for FileSystemLoader
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