Skip to main content

PcbAst

Struct PcbAst 

Source
pub struct PcbAst {
Show 49 fields pub version: Option<i32>, pub generator: Option<String>, pub generator_version: Option<String>, pub has_general: bool, pub has_paper: bool, pub has_title_block: bool, pub general: Option<PcbGeneralSummary>, pub paper: Option<PcbPaperSummary>, pub title_block: Option<PcbTitleBlockSummary>, pub has_setup: bool, pub setup: Option<PcbSetupSummary>, pub has_embedded_fonts: bool, pub has_embedded_files: bool, pub embedded_file_count: usize, pub properties: Vec<PcbProperty>, pub layers: Vec<PcbLayer>, pub nets: Vec<PcbNet>, pub footprints: Vec<PcbFootprintSummary>, pub segments: Vec<PcbSegmentSummary>, pub arcs: Vec<PcbArcSummary>, pub vias: Vec<PcbViaSummary>, pub zones: Vec<PcbZoneSummary>, pub generated_items: Vec<PcbGeneratedSummary>, pub dimensions: Vec<PcbDimensionSummary>, pub targets: Vec<PcbTargetSummary>, pub groups: Vec<PcbGroupSummary>, pub graphics: Vec<PcbGraphicSummary>, pub layer_count: usize, pub property_count: usize, pub net_count: usize, pub footprint_count: usize, pub graphic_count: usize, pub gr_line_count: usize, pub gr_rect_count: usize, pub gr_circle_count: usize, pub gr_arc_count: usize, pub gr_poly_count: usize, pub gr_curve_count: usize, pub gr_text_count: usize, pub gr_text_box_count: usize, pub trace_segment_count: usize, pub trace_arc_count: usize, pub via_count: usize, pub zone_count: usize, pub dimension_count: usize, pub target_count: usize, pub group_count: usize, pub generated_count: usize, pub unknown_nodes: Vec<UnknownNode>,
}
Expand description

PCB (.kicad_pcb) APIs.

Fields§

§version: Option<i32>§generator: Option<String>§generator_version: Option<String>§has_general: bool§has_paper: bool§has_title_block: bool§general: Option<PcbGeneralSummary>§paper: Option<PcbPaperSummary>§title_block: Option<PcbTitleBlockSummary>§has_setup: bool§setup: Option<PcbSetupSummary>§has_embedded_fonts: bool§has_embedded_files: bool§embedded_file_count: usize§properties: Vec<PcbProperty>§layers: Vec<PcbLayer>§nets: Vec<PcbNet>§footprints: Vec<PcbFootprintSummary>§segments: Vec<PcbSegmentSummary>§arcs: Vec<PcbArcSummary>§vias: Vec<PcbViaSummary>§zones: Vec<PcbZoneSummary>§generated_items: Vec<PcbGeneratedSummary>§dimensions: Vec<PcbDimensionSummary>§targets: Vec<PcbTargetSummary>§groups: Vec<PcbGroupSummary>§graphics: Vec<PcbGraphicSummary>§layer_count: usize§property_count: usize§net_count: usize§footprint_count: usize§graphic_count: usize§gr_line_count: usize§gr_rect_count: usize§gr_circle_count: usize§gr_arc_count: usize§gr_poly_count: usize§gr_curve_count: usize§gr_text_count: usize§gr_text_box_count: usize§trace_segment_count: usize§trace_arc_count: usize§via_count: usize§zone_count: usize§dimension_count: usize§target_count: usize§group_count: usize§generated_count: usize§unknown_nodes: Vec<UnknownNode>

Trait Implementations§

Source§

impl Clone for PcbAst

Source§

fn clone(&self) -> PcbAst

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PcbAst

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl PartialEq for PcbAst

Source§

fn eq(&self, other: &PcbAst) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for PcbAst

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.