pub struct Part {
pub source: PartSource,
pub name: String,
pub symbol: Symbol,
pub pads: Option<Footprint>,
pub reference: Option<String>,
}Expand description
A part the host offers to place: its own key and version, the name to show, the symbol and pads a placed component copies, and the label it goes by.
Fields§
§source: PartSource§name: String§symbol: Symbol§pads: Option<Footprint>§reference: Option<String>The label the placed component takes, such as J1, when the host keeps the
labels; None takes the next free one for the symbol’s prefix. A part whose
label is already on the sheet shows as placed and is not placed again.
Trait Implementations§
impl StructuralPartialEq for Part
Auto Trait Implementations§
impl Forget for Part
impl Freeze for Partwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
PhantomData<Graphic>: Freeze,
PhantomData<Pin>: Freeze,
PhantomData<u32>: Freeze,
PhantomData<Pad>: Freeze,
PhantomData<Vec<Point>>: Freeze,
PhantomData<LayerGraphic>: Freeze,
impl Move for Part
impl RefUnwindSafe for Part
impl Send for Part
impl Sync for Part
impl Unpin for Part
impl UnsafeUnpin for Partwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
PhantomData<Graphic>: UnsafeUnpin,
PhantomData<Pin>: UnsafeUnpin,
PhantomData<u32>: UnsafeUnpin,
PhantomData<Pad>: UnsafeUnpin,
PhantomData<Vec<Point>>: UnsafeUnpin,
PhantomData<LayerGraphic>: UnsafeUnpin,
impl UnwindSafe for Part
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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