pub struct ChipSpec {
pub size_code: String,
pub body_length_mm: f64,
pub body_width_mm: f64,
pub terminal_length_mm: f64,
pub height_mm: f64,
}Expand description
Chip component specification.
Fields§
§size_code: StringImperial size code (e.g., “0402”, “0603”, “0805”)
body_length_mm: f64Body length (mm)
body_width_mm: f64Body width (mm)
terminal_length_mm: f64Terminal length (mm)
height_mm: f64Component height (mm)
Implementations§
Source§impl ChipSpec
impl ChipSpec
Sourcepub fn to_footprint(&self, density: IpcDensity) -> FootprintBuilder
pub fn to_footprint(&self, density: IpcDensity) -> FootprintBuilder
Create a footprint for this chip spec.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChipSpec
impl RefUnwindSafe for ChipSpec
impl Send for ChipSpec
impl Sync for ChipSpec
impl Unpin for ChipSpec
impl UnwindSafe for ChipSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more