Struct kicad_parse_gen::schematic::Component [] [src]

pub struct Component {
    pub name: String,
    pub reference: String,
    pub u: String,
    pub x: i64,
    pub y: i64,
    pub ar_path: Vec<String>,
    pub fields: Vec<ComponentField>,
    pub rotation: ComponentRotation,
}

a schematic component

Fields

name

reference

u

X coordinate

Y coordinate

ARPath

component fields

rotation

Methods

impl Component
[src]

[src]

get a component field value by name

[src]

get a component field by name

[src]

get the first free component field number

[src]

get the component fields as a hashmap

[src]

update the reference of a component

[src]

update the name of a component

[src]

update name and value of a component field

[src]

update or add name and value of a component field

[src]

add a new component field based on an existing one but with a new name and value

Trait Implementations

impl Debug for Component
[src]

[src]

Formats the value using the given formatter.

impl Clone for Component
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for Component
[src]

[src]

Returns the "default value" for a type. Read more

impl BoundingBox for Component
[src]

[src]

calculate the bounding box of a layout item

impl Display for Component
[src]

[src]

Formats the value using the given formatter. Read more