[−][src]Struct keeshond_datapack::source::FilesystemSource
A Source that loads packages from the filesystem. This is a good source to use for development, or if you don't care about packaging your data files into an archive.
Methods
impl FilesystemSource
[src]
pub fn new(directory: &str) -> FilesystemSource
[src]
Creates a new FilesystemSource using the given directory to look for packages in
Trait Implementations
impl Source for FilesystemSource
[src]
fn get_uri(&self) -> &str
[src]
fn has_package(&self, package_name: &str) -> bool
[src]
fn read_file(
&mut self,
full_pathname: &str
) -> Result<Box<dyn Read>, PackageError>
[src]
&mut self,
full_pathname: &str
) -> Result<Box<dyn Read>, PackageError>
fn iter_entries(
&mut self,
package_name: &str,
type_name: &str
) -> Box<dyn Iterator<Item = Result<String, PackageError>>>
[src]
&mut self,
package_name: &str,
type_name: &str
) -> Box<dyn Iterator<Item = Result<String, PackageError>>>
Auto Trait Implementations
impl Send for FilesystemSource
impl Sync for FilesystemSource
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,