pub struct Ck3File<'a> { /* private fields */ }
Expand description
Entrypoint for parsing CK3 saves
Only consumes enough data to determine encoding of the file
Implementations
sourceimpl<'a> Ck3File<'a>
impl<'a> Ck3File<'a>
sourcepub fn from_slice(data: &[u8]) -> Result<Ck3File<'_>, Ck3Error>
pub fn from_slice(data: &[u8]) -> Result<Ck3File<'_>, Ck3Error>
Creates a CK3 file from a slice of data
sourcepub fn size(&self) -> usize
pub fn size(&self) -> usize
Returns the size of the file
The size includes the inflated size of the zip
pub fn parse_metadata(&self) -> Result<Ck3ParsedFile<'a>, Ck3Error>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Ck3File<'a>
impl<'a> Send for Ck3File<'a>
impl<'a> Sync for Ck3File<'a>
impl<'a> Unpin for Ck3File<'a>
impl<'a> UnwindSafe for Ck3File<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more