[−][src]Struct imperator_save::ImperatorExtractorBuilder
Customize how a save is extracted
Implementations
impl ImperatorExtractorBuilder
[src]
pub fn new() -> Self
[src]
Create a new extractor with default values: extract zips into memory
pub fn with_extraction(self, extraction: Extraction) -> Self
[src]
Set the memory allocation extraction behavior for when a zip is encountered
pub fn with_on_failed_resolve(self, strategy: FailedResolveStrategy) -> Self
[src]
Set the behavior for when an unresolved binary token is encountered
pub fn extract_header_owned(
&self,
data: &[u8]
) -> Result<(HeaderOwned, Encoding), ImperatorError>
[src]
&self,
data: &[u8]
) -> Result<(HeaderOwned, Encoding), ImperatorError>
Extract the header from the save.
pub fn extract_header_borrowed<'a>(
&self,
data: &'a [u8]
) -> Result<(HeaderBorrowed<'a>, Encoding), ImperatorError>
[src]
&self,
data: &'a [u8]
) -> Result<(HeaderBorrowed<'a>, Encoding), ImperatorError>
Extract the header from the save with zero copy deserialization.
pub fn extract_header_as<'de, T>(
&self,
data: &'de [u8]
) -> Result<(T, Encoding), ImperatorError> where
T: Deserialize<'de>,
[src]
&self,
data: &'de [u8]
) -> Result<(T, Encoding), ImperatorError> where
T: Deserialize<'de>,
Extract the header from the save as a custom type
pub fn extract_save<R>(
&self,
reader: R
) -> Result<(Save, Encoding), ImperatorError> where
R: Read + Seek,
[src]
&self,
reader: R
) -> Result<(Save, Encoding), ImperatorError> where
R: Read + Seek,
Extract all info from a save
Trait Implementations
impl Clone for ImperatorExtractorBuilder
[src]
fn clone(&self) -> ImperatorExtractorBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ImperatorExtractorBuilder
[src]
impl Default for ImperatorExtractorBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for ImperatorExtractorBuilder
impl Send for ImperatorExtractorBuilder
impl Sync for ImperatorExtractorBuilder
impl Unpin for ImperatorExtractorBuilder
impl UnwindSafe for ImperatorExtractorBuilder
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
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.
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>,