Struct kicad_parse_gen::schematic::Schematic
[−]
[src]
pub struct Schematic { pub filename: Option<PathBuf>, pub libraries: Vec<String>, pub description: Description, pub elements: Vec<Element>, pub sheets: Vec<Sheet>, pub eelayer: String, }
a Kicad schematic
Fields
filename: Option<PathBuf>
filename of the schematic
libraries: Vec<String>
list of libraries referenced
description: Description
description
elements: Vec<Element>
elements contained in the schematic
sheets: Vec<Sheet>
nested sheets contained in the schematic
eelayer: String
eelayer is transparently copied
Methods
impl Schematic
[src]
fn modify_component<F>(&mut self, reference: &str, fun: F) where
F: Fn(&mut Component),
[src]
F: Fn(&mut Component),
modify the component by name
fn modify_components<F>(&mut self, fun: F) where
F: Fn(&mut Component),
[src]
F: Fn(&mut Component),
modify all components
fn collect_components(&self, v: &mut Vec<Component>)
[src]
collect all components in a list
fn components(&self) -> Vec<Component>
[src]
return all components in a new list (redundant?)
fn all_components(&self) -> Result<Vec<Component>, KicadError>
[src]
return all components including from sub-sheets
fn component_by_reference(
&self,
reference: &str
) -> Result<Component, KicadError>
[src]
&self,
reference: &str
) -> Result<Component, KicadError>
get a component by reference
fn increment_sheet_count(&mut self)
[src]
increment the sheet counter of the schematic
Trait Implementations
impl Debug for Schematic
[src]
impl Default for Schematic
[src]
impl BoundingBox for Schematic
[src]
fn bounding_box(&self) -> Bound
[src]
calculate the bounding box of a layout item