Struct mila::LayeredFilesystem [−][src]
Implementations
impl LayeredFilesystem
[src]
pub fn new(
layers: Vec<String>,
language: Language,
game: Game
) -> Result<Self, LayeredFilesystemError>
[src]
layers: Vec<String>,
language: Language,
game: Game
) -> Result<Self, LayeredFilesystemError>
pub fn list(
&self,
path: &str,
glob: Option<&str>
) -> Result<Vec<String>, LayeredFilesystemError>
[src]
&self,
path: &str,
glob: Option<&str>
) -> Result<Vec<String>, LayeredFilesystemError>
pub fn read(
&self,
path: &str,
localized: bool
) -> Result<Vec<u8>, LayeredFilesystemError>
[src]
&self,
path: &str,
localized: bool
) -> Result<Vec<u8>, LayeredFilesystemError>
pub fn read_arc(
&self,
path: &str,
localized: bool
) -> Result<HashMap<String, Vec<u8>>, LayeredFilesystemError>
[src]
&self,
path: &str,
localized: bool
) -> Result<HashMap<String, Vec<u8>>, LayeredFilesystemError>
pub fn read_archive(
&self,
path: &str,
localized: bool
) -> Result<BinArchive, LayeredFilesystemError>
[src]
&self,
path: &str,
localized: bool
) -> Result<BinArchive, LayeredFilesystemError>
pub fn read_text_archive(
&self,
path: &str,
localized: bool
) -> Result<TextArchive, LayeredFilesystemError>
[src]
&self,
path: &str,
localized: bool
) -> Result<TextArchive, LayeredFilesystemError>
pub fn read_bch_textures(
&self,
path: &str,
localized: bool
) -> Result<HashMap<String, Texture>, LayeredFilesystemError>
[src]
&self,
path: &str,
localized: bool
) -> Result<HashMap<String, Texture>, LayeredFilesystemError>
pub fn read_ctpk_textures(
&self,
path: &str,
localized: bool
) -> Result<HashMap<String, Texture>, LayeredFilesystemError>
[src]
&self,
path: &str,
localized: bool
) -> Result<HashMap<String, Texture>, LayeredFilesystemError>
pub fn read_cgfx_textures(
&self,
path: &str,
localized: bool
) -> Result<HashMap<String, Texture>, LayeredFilesystemError>
[src]
&self,
path: &str,
localized: bool
) -> Result<HashMap<String, Texture>, LayeredFilesystemError>
pub fn write(
&self,
path: &str,
bytes: &[u8],
localized: bool
) -> Result<(), LayeredFilesystemError>
[src]
&self,
path: &str,
bytes: &[u8],
localized: bool
) -> Result<(), LayeredFilesystemError>
pub fn write_archive(
&self,
path: &str,
archive: &BinArchive,
localized: bool
) -> Result<(), LayeredFilesystemError>
[src]
&self,
path: &str,
archive: &BinArchive,
localized: bool
) -> Result<(), LayeredFilesystemError>
pub fn write_text_archive(
&self,
path: &str,
archive: &TextArchive,
localized: bool
) -> Result<(), LayeredFilesystemError>
[src]
&self,
path: &str,
archive: &TextArchive,
localized: bool
) -> Result<(), LayeredFilesystemError>
Trait Implementations
impl Clone for LayeredFilesystem
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for LayeredFilesystem
[src]
impl Send for LayeredFilesystem
[src]
impl Sync for LayeredFilesystem
[src]
impl Unpin for LayeredFilesystem
[src]
impl UnwindSafe for LayeredFilesystem
[src]
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,
pub 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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,