pub struct SchematicSymbolSourceView<'a> { /* private fields */ }Expand description
A single structural scan over the document. Queries parse only selected records, so asking for many placements does not reparse the whole document.
Implementations§
Source§impl SchematicSymbolSourceView<'_>
impl SchematicSymbolSourceView<'_>
pub fn native_loaded_pose( &self, ordinal: usize, ) -> Result<Option<SchematicNativeLoadedPose>, SourceBundleError>
Source§impl SchematicSymbolSourceView<'_>
impl SchematicSymbolSourceView<'_>
Sourcepub fn placed_fields_with_native_text_size(
&self,
placed_ordinal: usize,
) -> Result<Vec<SchematicFieldWithNativeTextSize>, SourceBundleError>
pub fn placed_fields_with_native_text_size( &self, placed_ordinal: usize, ) -> Result<Vec<SchematicFieldWithNativeTextSize>, SourceBundleError>
Read every original property once. Repeated effects/font/size assignments replay in source order; absent explicit size remainsNone. Raw getters, source bytes, identities, positions and visibility are unchanged. Content failures are row-local; resource/contract failures are outerErr.
Source§impl<'a> SchematicSymbolSourceView<'a>
impl<'a> SchematicSymbolSourceView<'a>
pub fn placed_count(&self) -> usize
pub fn library_count(&self) -> usize
pub fn placed_symbol_source( &self, ordinal: usize, ) -> Option<SchematicSourceForm<'a>>
pub fn library_symbol_source( &self, ordinal: usize, ) -> Option<SchematicLibrarySource<'_>>
Sourcepub fn library_symbol_source_for_key(
&self,
key: &str,
) -> Option<SchematicLibrarySource<'_>>
pub fn library_symbol_source_for_key( &self, key: &str, ) -> Option<SchematicLibrarySource<'_>>
Existing source lookup, including inheritance: exact authored names precede basename aliases, with the first exact source row retained.
Sourcepub fn selected_library_symbol_source(
&self,
placed_ordinal: usize,
) -> Result<Option<SchematicLibrarySource<'_>>, SourceBundleError>
pub fn selected_library_symbol_source( &self, placed_ordinal: usize, ) -> Result<Option<SchematicLibrarySource<'_>>, SourceBundleError>
Select the actual embedded source: lib_name override first, then lib_id; exact full keys precede basename fallback. No external library is opened.
pub fn placed_fields( &self, placed_ordinal: usize, ) -> Result<Vec<SchematicFieldRecord>, SourceBundleError>
pub fn placed_pins( &self, placed_ordinal: usize, ) -> Result<Vec<SchematicPinRecord>, SourceBundleError>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SchematicSymbolSourceView<'a>
impl<'a> RefUnwindSafe for SchematicSymbolSourceView<'a>
impl<'a> Send for SchematicSymbolSourceView<'a>
impl<'a> Sync for SchematicSymbolSourceView<'a>
impl<'a> Unpin for SchematicSymbolSourceView<'a>
impl<'a> UnsafeUnpin for SchematicSymbolSourceView<'a>
impl<'a> UnwindSafe for SchematicSymbolSourceView<'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