#[non_exhaustive]pub struct Pad { /* private fields */ }
Expand description
Footprint pad structure
Implementations§
Source§impl Pad
impl Pad
Sourcepub fn new(
layers: &[Layer],
pos: (f32, f32),
angle: f32,
svgpath: &str,
drill_size: Option<(f32, f32)>,
net: Option<&str>,
pin1: bool,
) -> Pad
pub fn new( layers: &[Layer], pos: (f32, f32), angle: f32, svgpath: &str, drill_size: Option<(f32, f32)>, net: Option<&str>, pin1: bool, ) -> Pad
Construct object
§Arguments
layers
- Layers on which the pad exists.pos
- Position (x, y) [mm].angle
- Rotation angle [°].svgpath
- Pad shape as SVG path [mm].drill_size
- Drill size (w, h) [mm] (only for THT pads).net
- Net name (optional).pin1
- Whether this is considered as the pin-1 or not.
§Returns
Returns the new object.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pad
impl RefUnwindSafe for Pad
impl Send for Pad
impl Sync for Pad
impl Unpin for Pad
impl UnwindSafe for Pad
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more