Skip to main content
← Back to kicad-monkey Rust Docs kicad-monkey Rust Crate API Reference

SchematicSymbolSourceView

Struct SchematicSymbolSourceView 

Source
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<'_>

Source§

impl SchematicSymbolSourceView<'_>

Source

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>

Source

pub fn placed_count(&self) -> usize

Source

pub fn library_count(&self) -> usize

Source

pub fn placed_symbol_source( &self, ordinal: usize, ) -> Option<SchematicSourceForm<'a>>

Source

pub fn library_symbol_source( &self, ordinal: usize, ) -> Option<SchematicLibrarySource<'_>>

Source

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.

Source

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.

Source

pub fn placed_fields( &self, placed_ordinal: usize, ) -> Result<Vec<SchematicFieldRecord>, SourceBundleError>

Source

pub fn placed_pins( &self, placed_ordinal: usize, ) -> Result<Vec<SchematicPinRecord>, SourceBundleError>

Trait Implementations§

Source§

impl<'a> Debug for SchematicSymbolSourceView<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.