pub struct SymbolLibraryView<'a> { /* private fields */ }Expand description
A symbol-library view retaining only selected source spans and counts.
Implementations§
Source§impl SymbolLibraryView<'_>
impl SymbolLibraryView<'_>
Sourcepub fn rename_symbol(
&self,
old_stored_name: &str,
new_stored_name: &str,
max_output_bytes: usize,
) -> Result<SymbolLibraryEdit, Error>
pub fn rename_symbol( &self, old_stored_name: &str, new_stored_name: &str, max_output_bytes: usize, ) -> Result<SymbolLibraryEdit, Error>
Rename one exact stored root and its direct owned unit identifiers only.
Names are decoded S-expression scalars, not escaped library-item names. Unsupported LIB_ID or owned-unit spellings refuse this mutation without tightening the read-only view. Fields, inheritance and unknown forms stay byte-for-byte unchanged.
Source§impl<'a> SymbolLibraryView<'a>
impl<'a> SymbolLibraryView<'a>
Sourcepub fn parse(source: &'a str) -> Result<Self, Error>
pub fn parse(source: &'a str) -> Result<Self, Error>
Validate one library root and index summaries without a generic tree.
pub fn symbol_count(&self) -> usize
Sourcepub fn symbols(
&self,
) -> impl Iterator<Item = Result<SymbolSummary<'a>, Error>> + '_
pub fn symbols( &self, ) -> impl Iterator<Item = Result<SymbolSummary<'a>, Error>> + '_
Decode symbol summaries in source order, one entry at a time.
Sourcepub fn set_boolean(
&self,
symbol_name: &str,
field: SymbolBooleanField,
value: bool,
max_output_bytes: usize,
) -> Result<SymbolLibraryEdit, Error>
pub fn set_boolean( &self, symbol_name: &str, field: SymbolBooleanField, value: bool, max_output_bytes: usize, ) -> Result<SymbolLibraryEdit, Error>
Replace or insert one supported symbol flag while preserving all other bytes.
Trait Implementations§
Source§impl<'a> Clone for SymbolLibraryView<'a>
impl<'a> Clone for SymbolLibraryView<'a>
Source§fn clone(&self) -> SymbolLibraryView<'a>
fn clone(&self) -> SymbolLibraryView<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for SymbolLibraryView<'a>
impl<'a> RefUnwindSafe for SymbolLibraryView<'a>
impl<'a> Send for SymbolLibraryView<'a>
impl<'a> Sync for SymbolLibraryView<'a>
impl<'a> Unpin for SymbolLibraryView<'a>
impl<'a> UnsafeUnpin for SymbolLibraryView<'a>
impl<'a> UnwindSafe for SymbolLibraryView<'a>
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