Struct kicad_parse_gen::layout::Layout
[−]
[src]
pub struct Layout { pub version: i64, pub host: Host, pub general: General, pub page: String, pub setup: Setup, pub layers: Vec<Layer>, pub elements: Vec<Element>, }
a Kicad layout
Fields
version: i64
version of file
host: Host
build-host
general: General
general information
page: String
page size
setup: Setup
setup information
layers: Vec<Layer>
layers
elements: Vec<Element>
layout elements
Methods
impl Layout
[src]
fn nets(&self) -> Vec<&Net>
get lists of nets
fn change_net_name(&mut self, old_name: &str, new_name: &str)
change net name
fn netclasses(&self) -> Vec<&NetClass>
get list of netclasses
fn get_module(&self, reference: &str) -> Option<&Module>
get module
fn modify_module<F>(&mut self, reference: &str, fun: F) -> Result<()> where F: Fn(&mut Module) -> ()
modify a module
fn add_net(&mut self, num: i64, name: &'static str)
add a net
fn add_netclass(&mut self,
name: &'static str,
desc: &'static str,
clearance: f64,
trace_width: f64,
via_dia: f64,
via_drill: f64,
uvia_dia: f64,
uvia_drill: f64,
diff_pair_gap: Option<f64>,
diff_pair_width: Option<f64>,
nets: Vec<String>)
name: &'static str,
desc: &'static str,
clearance: f64,
trace_width: f64,
via_dia: f64,
via_drill: f64,
uvia_dia: f64,
uvia_drill: f64,
diff_pair_gap: Option<f64>,
diff_pair_width: Option<f64>,
nets: Vec<String>)
add a net class