Struct kicad_parse_gen::footprint::Module
[−]
[src]
pub struct Module { pub name: String, pub elements: Vec<Element>, }
a Kicad module, with a name and a list of elements
Fields
name: String
name of the Kicad Module
elements: Vec<Element>
elements contained within the Kicad Module
Methods
impl Module
[src]
fn new(name: String) -> Module
create a Module
fn append(&mut self, e: Element)
append an Element to a Module
fn is_reference_with_name(&self, reference: &str) -> bool
check if a Module has a reference Element with the specified name
fn get_reference(&self) -> Option<&String>
check if a Module has a reference Element with the specified name
fn set_reference(&mut self, reference: &str, reference2: &str)
update the name of the reference element specified by name, if found
fn at(&self) -> (f64, f64)
check if there is an At element and return the coordinates found returns the default of (0.0,0.0) if not found
fn is_front(&self) -> bool
check if the Module is on the front layer
fn rename_net(&mut self, old_name: &str, new_name: &str)
rename a net
Trait Implementations
impl Debug for Module
[src]
impl Clone for Module
[src]
fn clone(&self) -> Module
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more