[−][src]Struct ck3save::Ck3ExtractorBuilder
Customize how a save is extracted
Implementations
impl Ck3ExtractorBuilder
[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), Ck3Error>
[src]
&self,
data: &[u8]
) -> Result<(HeaderOwned, Encoding), Ck3Error>
Extract the header from the save.
pub fn extract_header_borrowed<'a>(
&self,
data: &'a [u8]
) -> Result<(HeaderBorrowed<'a>, Encoding), Ck3Error>
[src]
&self,
data: &'a [u8]
) -> Result<(HeaderBorrowed<'a>, Encoding), Ck3Error>
Extract the header from the save with zero copy deserialization.
pub fn extract_header_as<'de, T>(
&self,
data: &'de [u8]
) -> Result<(T, Encoding), Ck3Error> where
T: Deserialize<'de>,
[src]
&self,
data: &'de [u8]
) -> Result<(T, Encoding), Ck3Error> where
T: Deserialize<'de>,
Extract the header from the save as a custom type
pub fn extract_save<R>(
&self,
reader: R
) -> Result<(Gamestate, Encoding), Ck3Error> where
R: Read + Seek,
[src]
&self,
reader: R
) -> Result<(Gamestate, Encoding), Ck3Error> where
R: Read + Seek,
Extract all info from a save
pub fn extract_save_as<T, R>(
&self,
reader: R
) -> Result<(T, Encoding), Ck3Error> where
R: Read + Seek,
T: DeserializeOwned,
[src]
&self,
reader: R
) -> Result<(T, Encoding), Ck3Error> where
R: Read + Seek,
T: DeserializeOwned,
Extract all info from a save as a custom type
Trait Implementations
impl Clone for Ck3ExtractorBuilder
[src]
fn clone(&self) -> Ck3ExtractorBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Ck3ExtractorBuilder
[src]
impl Default for Ck3ExtractorBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for Ck3ExtractorBuilder
impl Send for Ck3ExtractorBuilder
impl Sync for Ck3ExtractorBuilder
impl Unpin for Ck3ExtractorBuilder
impl UnwindSafe for Ck3ExtractorBuilder
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>,