pub struct AtomsSection { /* private fields */ }Available on crate feature
v3 only.Expand description
A section containing the atoms volume.
Implementations§
Source§impl AtomsSection
impl AtomsSection
pub fn get_hash(&self) -> &[u8; 32]
pub fn get_atom( &self, atom_name: &str, ) -> Result<(OwnedBuffer, [u8; 32]), LookupError>
pub fn get_atom_with_offset( &self, atom_name: &str, ) -> Result<(OwnedBuffer, [u8; 32]), LookupError>
Sourcepub fn iter(
&self,
) -> impl Iterator<Item = Result<(&str, [u8; 32], OwnedBuffer), DirEntryError>>
pub fn iter( &self, ) -> impl Iterator<Item = Result<(&str, [u8; 32], OwnedBuffer), DirEntryError>>
Iterate over all the atoms in this AtomsSection.
Sourcepub fn iter_with_offsets(
&self,
) -> impl Iterator<Item = Result<(&str, [u8; 32], OwnedBuffer, Span), DirEntryError>>
pub fn iter_with_offsets( &self, ) -> impl Iterator<Item = Result<(&str, [u8; 32], 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 duplicate 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 for AtomsSection
impl PartialEq for AtomsSection
Source§impl TryFrom<Section> for AtomsSection
impl TryFrom<Section> for AtomsSection
impl StructuralPartialEq for AtomsSection
Auto Trait Implementations§
impl !Freeze for AtomsSection
impl RefUnwindSafe for AtomsSection
impl Send for AtomsSection
impl Sync for AtomsSection
impl Unpin for AtomsSection
impl UnwindSafe for AtomsSection
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