Struct webc::v2::read::AtomsSection
source · pub struct AtomsSection { /* private fields */ }
Expand description
A section containing the atoms volume.
Implementations§
source§impl AtomsSection
impl AtomsSection
pub fn get_atom(&self, atom_name: &str) -> Result<OwnedBuffer, LookupError>
pub fn get_atom_with_offset( &self, atom_name: &str ) -> Result<OwnedBuffer, LookupError>
sourcepub fn iter(
&self
) -> impl Iterator<Item = Result<(&str, OwnedBuffer), DirEntryError>>
pub fn iter( &self ) -> impl Iterator<Item = Result<(&str, OwnedBuffer), DirEntryError>>
Iterate over all the atoms in this AtomsSection
.
sourcepub fn iter_with_offsets(
&self
) -> impl Iterator<Item = Result<(&str, OwnedBuffer, Span), DirEntryError>>
pub fn iter_with_offsets( &self ) -> impl Iterator<Item = Result<(&str, OwnedBuffer, Span), DirEntryError>>
Iterate over all the atoms in this AtomsSection
, including their
offsets relative to the start of the volume.
Trait Implementations§
source§impl Clone for AtomsSection
impl Clone for AtomsSection
source§fn clone(&self) -> AtomsSection
fn clone(&self) -> AtomsSection
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 AtomsSection
impl Debug for AtomsSection
source§impl From<AtomsSection> for Section
impl From<AtomsSection> for Section
source§fn from(value: AtomsSection) -> Self
fn from(value: AtomsSection) -> Self
Converts to this type from the input type.
source§impl PartialEq<AtomsSection> for AtomsSection
impl PartialEq<AtomsSection> for AtomsSection
source§fn eq(&self, other: &AtomsSection) -> bool
fn eq(&self, other: &AtomsSection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.