pub struct HmcContainer { /* private fields */ }Expand description
Read side: opens a .hmc, exposes the manifest, and reads assets on demand.
Implementations§
Source§impl HmcContainer
impl HmcContainer
Sourcepub fn from_bytes(bytes: Vec<u8>) -> Result<Self>
pub fn from_bytes(bytes: Vec<u8>) -> Result<Self>
Parses bytes.
Sourcepub fn manifest(&self) -> &HmcManifest
pub fn manifest(&self) -> &HmcManifest
Manifest.
Sourcepub fn read_asset_bytes(&mut self, path: &str) -> Result<Vec<u8>>
pub fn read_asset_bytes(&mut self, path: &str) -> Result<Vec<u8>>
Raw bytes of a stored member by its in-zip path.
Auto Trait Implementations§
impl Freeze for HmcContainer
impl RefUnwindSafe for HmcContainer
impl Send for HmcContainer
impl Sync for HmcContainer
impl Unpin for HmcContainer
impl UnsafeUnpin for HmcContainer
impl UnwindSafe for HmcContainer
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more