#[non_exhaustive]pub struct Footprint { /* private fields */ }
Expand description
Footprint structure
Implementations§
Source§impl Footprint
impl Footprint
Sourcepub fn new(
layer: Layer,
pos: (f32, f32),
angle: f32,
bottom_left: (f32, f32),
top_right: (f32, f32),
fields: &[String],
pads: &[Pad],
mount: bool,
) -> Footprint
pub fn new( layer: Layer, pos: (f32, f32), angle: f32, bottom_left: (f32, f32), top_right: (f32, f32), fields: &[String], pads: &[Pad], mount: bool, ) -> Footprint
Construct object
§Arguments
layer
- Placement layer.pos
- Position (x, y) [mm].angle
- Rotation angle [°].bottom_left
- Bottom left corner of bounding box (x, y) [mm].top_right
- Top right corner of bounding box (x, y) [mm].fields
- Custom fields, corresponding to InteractiveHtmlBom::fields.pads
- Footprint pads.mount
- Whether the footprint is mounted or not.
§Returns
Returns the new object.
Auto Trait Implementations§
impl Freeze for Footprint
impl RefUnwindSafe for Footprint
impl Send for Footprint
impl Sync for Footprint
impl Unpin for Footprint
impl UnwindSafe for Footprint
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