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 zone_connect: Option<i64>, pub drill: Option<Drill>, pub solder_paste_margin: Option<f64>, pub solder_mask_margin: Option<f64>, pub clearance: Option<f64>, pub thermal_gap: 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
zone_connect: Option<i64>
zone connect
drill: Option<Drill>
drill
solder_paste_margin: Option<f64>
solder paste margin
solder_mask_margin: Option<f64>
solder mask margin
clearance: Option<f64>
clearance
thermal_gap: Option<f64>
thermal gap
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
impl Flip for Pad
[src]
fn flip(&mut self)
flip me
impl PartialEq for Pad
[src]
fn eq(&self, other: &Pad) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl BoundingBox for Pad
[src]
fn bounding_box(&self) -> Bound
calculate the bounding box of a layout item