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) -> ()
modify the component by name
fn modify_components<F>(&mut self, fun: F) where F: Fn(&mut Component) -> ()
modify all components
fn collect_components(&self, v: &mut Vec<Component>)
collect all components in a list
fn components(&self) -> Vec<Component>
return all components in a new list (redundant?)
fn all_components(&self) -> Result<Vec<Component>>
return all components including from sub-sheets
fn component_by_reference(&self, reference: &str) -> Result<Component>
get a component by reference
fn increment_sheet_count(&mut self)
increment the sheet counter of the schematic