pub struct SchematicDefinition {Show 19 fields
pub source_path: String,
pub version: Option<String>,
pub generator: Option<String>,
pub generator_version: Option<String>,
pub uuid: Option<String>,
pub title_block: Option<KiCadTitleBlock>,
pub sheets: Vec<SchematicSheet>,
pub root_page_instances: Vec<SchematicPageInstance>,
pub symbols: Vec<SchematicPlacedSymbol>,
pub library_symbols: Vec<SchematicLibrarySymbol>,
pub legacy_symbol_instances: Vec<SchematicLegacySymbolInstance>,
pub wires: Vec<SchematicPolyline>,
pub buses: Vec<SchematicPolyline>,
pub bus_entries: Vec<SchematicBusEntry>,
pub bus_aliases: Vec<SchematicBusAlias>,
pub junctions: Vec<SchematicJunction>,
pub no_connects: Vec<SchematicNoConnect>,
pub labels: Vec<SchematicLabel>,
pub connectivity: SchematicConnectivity,
/* private fields */
}Fields§
§source_path: String§version: Option<String>§generator: Option<String>§generator_version: Option<String>§uuid: Option<String>§title_block: Option<KiCadTitleBlock>§sheets: Vec<SchematicSheet>§root_page_instances: Vec<SchematicPageInstance>§symbols: Vec<SchematicPlacedSymbol>§library_symbols: Vec<SchematicLibrarySymbol>§legacy_symbol_instances: Vec<SchematicLegacySymbolInstance>§wires: Vec<SchematicPolyline>§buses: Vec<SchematicPolyline>§bus_entries: Vec<SchematicBusEntry>§bus_aliases: Vec<SchematicBusAlias>§junctions: Vec<SchematicJunction>§no_connects: Vec<SchematicNoConnect>§labels: Vec<SchematicLabel>§connectivity: SchematicConnectivityImplementations§
Source§impl SchematicDefinition
impl SchematicDefinition
pub fn legacy_symbol_instance( &self, path: &str, ) -> Option<&SchematicLegacySymbolInstance>
Source§impl SchematicDefinition
impl SchematicDefinition
pub fn library_symbol_for_placement( &self, symbol: &SchematicPlacedSymbol, ) -> Option<&SchematicLibrarySymbol>
pub fn library_pin_symbol_for_placement( &self, symbol: &SchematicPlacedSymbol, ) -> Option<&SchematicLibrarySymbol>
Source§impl SchematicDefinition
impl SchematicDefinition
Sourcepub fn effective_symbol_base(
&self,
symbol_ordinal: usize,
project_name: &str,
occurrence_address: Option<&str>,
legacy_address: Option<&str>,
) -> Result<Option<SchematicEffectiveSymbol>, SourceBundleError>
pub fn effective_symbol_base( &self, symbol_ordinal: usize, project_name: &str, occurrence_address: Option<&str>, legacy_address: Option<&str>, ) -> Result<Option<SchematicEffectiveSymbol>, SourceBundleError>
Resolve one placed record for a standalone base-design occurrence. Selection is local to this parsed definition: no files are discovered or opened. Omitted paths use the native root addresses (/{root UUID}, /). Modern project/path selection and legacy fallbacks share the bundle resolver. A bad/ambiguous record errors locally; its neighbors remain queryable. Named variant overrides are deliberately not applied here.
Trait Implementations§
Source§impl Clone for SchematicDefinition
impl Clone for SchematicDefinition
Source§fn clone(&self) -> SchematicDefinition
fn clone(&self) -> SchematicDefinition
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 moreSource§impl Debug for SchematicDefinition
impl Debug for SchematicDefinition
Source§impl<'de> Deserialize<'de> for SchematicDefinition
impl<'de> Deserialize<'de> for SchematicDefinition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SchematicDefinition
impl PartialEq for SchematicDefinition
Source§impl Serialize for SchematicDefinition
impl Serialize for SchematicDefinition
impl StructuralPartialEq for SchematicDefinition
Auto Trait Implementations§
impl Freeze for SchematicDefinition
impl RefUnwindSafe for SchematicDefinition
impl Send for SchematicDefinition
impl Sync for SchematicDefinition
impl Unpin for SchematicDefinition
impl UnsafeUnpin for SchematicDefinition
impl UnwindSafe for SchematicDefinition
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