Struct kicad_parse_gen::footprint::Pad
[−]
[src]
pub struct Pad { pub name: String, pub t: PadType, pub shape: PadShape, pub size: Xy, pub rect_delta: Option<Xy>, pub at: At, pub layers: Layers, pub net: Option<Net>, pub drill: Option<Drill>, pub solder_paste_margin: Option<f64>, pub solder_mask_margin: Option<f64>, pub clearance: Option<f64>, }
a pad
Fields
name: String
name
t: PadType
type
shape: PadShape
shape
size: Xy
size
rect_delta: Option<Xy>
offset
at: At
location
layers: Layers
layers
net: Option<Net>
associated net
drill: Option<Drill>
drill
solder_paste_margin: Option<f64>
solder paste margin
solder_mask_margin: Option<f64>
solder mask margin
clearance: Option<f64>
clearance
Methods
impl Pad
[src]
fn new(name: String, t: PadType, shape: PadShape) -> Pad
create a pad with a name, type and shape
fn rename_net(&mut self, old_name: &str, new_name: &str)
rename the net of a pad
fn set_net(&mut self, net: Net)
set the net of a pad
fn set_drill(&mut self, drill: Drill)
set the drill of a pad
Trait Implementations
impl Debug for Pad
[src]
impl Clone for Pad
[src]
fn clone(&self) -> Pad
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