Struct imperator_save::ImperatorExtractor
source · [−]pub struct ImperatorExtractor {}
Expand description
Logic container for extracting data from an Imperator save
Implementations
sourceimpl ImperatorExtractor
impl ImperatorExtractor
sourcepub fn builder() -> ImperatorExtractorBuilder
pub fn builder() -> ImperatorExtractorBuilder
Create a customized container
sourcepub fn extract_header(
data: &[u8]
) -> Result<(HeaderOwned, Encoding), ImperatorError>
pub fn extract_header(
data: &[u8]
) -> Result<(HeaderOwned, Encoding), ImperatorError>
Extract just the header from the save
sourcepub fn extract_save<R>(reader: R) -> Result<(Save, Encoding), ImperatorError> where
R: Read + Seek,
pub fn extract_save<R>(reader: R) -> Result<(Save, Encoding), ImperatorError> where
R: Read + Seek,
Extract all info from a save
Trait Implementations
sourceimpl Clone for ImperatorExtractor
impl Clone for ImperatorExtractor
sourcefn clone(&self) -> ImperatorExtractor
fn clone(&self) -> ImperatorExtractor
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for ImperatorExtractor
impl Send for ImperatorExtractor
impl Sync for ImperatorExtractor
impl Unpin for ImperatorExtractor
impl UnwindSafe for ImperatorExtractor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more