Struct webc::v2::read::ManifestSection
source · pub struct ManifestSection(_);
Expand description
A section containing the file’s Manifest
.
Implementations§
source§impl ManifestSection
impl ManifestSection
sourcepub fn bytes(&self) -> &OwnedBuffer
pub fn bytes(&self) -> &OwnedBuffer
Get a reference to the bytes this section contains.
sourcepub fn manifest(&self) -> Result<Manifest, Error>
pub fn manifest(&self) -> Result<Manifest, Error>
Deserialize into the canonical Manifest
format.
This is just shorthand for calling ManifestSection::deserialize()
with the right types.
sourcepub fn deserialize<'buf, T>(&'buf self) -> Result<T, Error>where
T: Deserialize<'buf>,
pub fn deserialize<'buf, T>(&'buf self) -> Result<T, Error>where T: Deserialize<'buf>,
Deserialize the manifest section into a custom type.
Trait Implementations§
source§impl Clone for ManifestSection
impl Clone for ManifestSection
source§fn clone(&self) -> ManifestSection
fn clone(&self) -> ManifestSection
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ManifestSection
impl Debug for ManifestSection
source§impl From<ManifestSection> for Section
impl From<ManifestSection> for Section
source§fn from(value: ManifestSection) -> Self
fn from(value: ManifestSection) -> Self
Converts to this type from the input type.
source§impl PartialEq<ManifestSection> for ManifestSection
impl PartialEq<ManifestSection> for ManifestSection
source§fn eq(&self, other: &ManifestSection) -> bool
fn eq(&self, other: &ManifestSection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.