pub struct Cia<T: Read + Seek> {
pub cia: CiaMetadata,
/* private fields */
}Expand description
Readable representation of a CIA archive.
Fields§
§cia: CiaMetadataCIA metadata associated with this archive.
Implementations§
Source§impl<T: Read + Seek> Cia<T>
impl<T: Read + Seek> Cia<T>
Sourcepub fn try_from(io: T) -> Result<Self, Error>
pub fn try_from(io: T) -> Result<Self, Error>
Creates a Cia from a IO object, taking ownership of it.
§Errors
See CiaRead::read_cia_metadata for details.
Sourcepub const fn new(cia: CiaMetadata, io: T) -> Self
pub const fn new(cia: CiaMetadata, io: T) -> Self
Creates a Cia from pre-parsed metadata and an IO object, taking ownership of both.
Sourcepub fn release(self) -> (CiaMetadata, T)
pub fn release(self) -> (CiaMetadata, T)
Consumes self and releases ownership over the CiaMetadata and IO object.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Cia<T>where
T: Freeze,
impl<T> RefUnwindSafe for Cia<T>where
T: RefUnwindSafe,
impl<T> Send for Cia<T>where
T: Send,
impl<T> Sync for Cia<T>where
T: Sync,
impl<T> Unpin for Cia<T>where
T: Unpin,
impl<T> UnsafeUnpin for Cia<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Cia<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more