pub struct PcbDocComponent {
pub designator: String,
pub pattern: String,
pub comment: String,
pub params: ParameterCollection,
pub primitives: Vec<PcbRecord>,
}Expand description
A component placed on the board.
Fields§
§designator: StringComponent designator (e.g., “R1”, “U1”).
pattern: StringFootprint pattern name.
comment: StringComponent comment/value.
params: ParameterCollectionComponent parameters.
primitives: Vec<PcbRecord>Primitives belonging to this component.
Implementations§
Source§impl PcbDocComponent
impl PcbDocComponent
Sourcepub fn set_position(&mut self, x: Coord, y: Coord)
pub fn set_position(&mut self, x: Coord, y: Coord)
Set the position of the component.
Sourcepub fn set_rotation(&mut self, rotation: f64)
pub fn set_rotation(&mut self, rotation: f64)
Set the rotation angle in degrees.
Trait Implementations§
Source§impl Debug for PcbDocComponent
impl Debug for PcbDocComponent
Source§impl Default for PcbDocComponent
impl Default for PcbDocComponent
Source§fn default() -> PcbDocComponent
fn default() -> PcbDocComponent
Returns the “default value” for a type. Read more
Source§impl DumpTree for PcbDocComponent
impl DumpTree for PcbDocComponent
Source§fn dump(&self, tree: &mut TreeBuilder)
fn dump(&self, tree: &mut TreeBuilder)
Dump this item to the tree builder.
Source§fn dump_to_string(&self) -> String
fn dump_to_string(&self) -> String
Convenience method to dump to a string.
Source§fn dump_to_string_with_options(&self, options: DumpOptions) -> String
fn dump_to_string_with_options(&self, options: DumpOptions) -> String
Convenience method to dump to a string with options.
Auto Trait Implementations§
impl Freeze for PcbDocComponent
impl RefUnwindSafe for PcbDocComponent
impl Send for PcbDocComponent
impl Sync for PcbDocComponent
impl Unpin for PcbDocComponent
impl UnwindSafe for PcbDocComponent
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> 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