[−][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.
Implementations
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 list_packages(&mut self) -> Vec<String>[src]
fn read_file(
&mut self,
full_pathname: &str
) -> Result<Box<dyn ReadSeek>, PackageError>[src]
&mut self,
full_pathname: &str
) -> Result<Box<dyn ReadSeek>, PackageError>
fn write_file(
&mut self,
full_pathname: &str
) -> Result<Box<dyn Write>, PackageError>[src]
&mut self,
full_pathname: &str
) -> Result<Box<dyn Write>, PackageError>
fn iter_entries(
&mut self,
package_name: &str,
type_folder: &str
) -> Box<dyn Iterator<Item = Result<String, PackageError>>>[src]
&mut self,
package_name: &str,
type_folder: &str
) -> Box<dyn Iterator<Item = Result<String, PackageError>>>
Auto Trait Implementations
impl RefUnwindSafe for FilesystemSource
impl Send for FilesystemSource
impl Sync for FilesystemSource
impl Unpin for FilesystemSource
impl UnwindSafe for FilesystemSource
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,