pub struct SymbolMetadataSectionAdapter;Expand description
Symbol metadata section adapter
Handles reading/writing symbol metadata from/to a SYMBOL_METADATA section.
Implementations§
Source§impl SymbolMetadataSectionAdapter
impl SymbolMetadataSectionAdapter
pub const SECTION_NAME: &'static str = "SYMBOL_METADATA"
Sourcepub fn load(storage: &mut SectionedStorage) -> Result<SymbolMetadataStore>
pub fn load(storage: &mut SectionedStorage) -> Result<SymbolMetadataStore>
Load symbol metadata from the section
Sourcepub fn save(
storage: &mut SectionedStorage,
store: &SymbolMetadataStore,
) -> Result<()>
pub fn save( storage: &mut SectionedStorage, store: &SymbolMetadataStore, ) -> Result<()>
Save symbol metadata to the section
Handles auto-resizing if capacity is exceeded.
Sourcepub fn init(storage: &mut SectionedStorage) -> Result<()>
pub fn init(storage: &mut SectionedStorage) -> Result<()>
Initialize an empty SYMBOL_METADATA section with reasonable default capacity
Sourcepub fn exists(storage: &SectionedStorage) -> bool
pub fn exists(storage: &SectionedStorage) -> bool
Check if SYMBOL_METADATA section exists
Auto Trait Implementations§
impl Freeze for SymbolMetadataSectionAdapter
impl RefUnwindSafe for SymbolMetadataSectionAdapter
impl Send for SymbolMetadataSectionAdapter
impl Sync for SymbolMetadataSectionAdapter
impl Unpin for SymbolMetadataSectionAdapter
impl UnsafeUnpin for SymbolMetadataSectionAdapter
impl UnwindSafe for SymbolMetadataSectionAdapter
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