Skip to main content
← Back to kicad-monkey Rust Docs kicad-monkey Rust Crate API Reference

PcbZone

Struct PcbZone 

Source
pub struct PcbZone {
Show 35 fields pub net: PcbNetRef, pub net_name: Option<String>, pub has_explicit_net_name: bool, pub layers: Vec<String>, pub layers_plural: bool, pub locked: bool, pub uuid: Option<String>, pub name: Option<String>, pub hatch_style: String, pub hatch_pitch: f64, pub priority: i64, pub connect_pads_mode: Option<String>, pub connect_pads_clearance: f64, pub min_thickness: f64, pub filled_areas_thickness: bool, pub fill_enabled: bool, pub fill_mode: Option<String>, pub hatch_thickness: Option<f64>, pub hatch_gap: Option<f64>, pub hatch_orientation: Option<f64>, pub hatch_smoothing_level: Option<i64>, pub hatch_smoothing_value: Option<f64>, pub hatch_border_algorithm: Option<String>, pub hatch_min_hole_area: Option<f64>, pub thermal_gap: f64, pub thermal_bridge_width: f64, pub island_removal_mode: Option<i64>, pub island_area_min: Option<f64>, pub unmodeled_fill_settings: Vec<String>, pub keepout: Option<PcbZoneKeepout>, pub placement: Option<PcbZonePlacement>, pub layer_properties: Vec<PcbZoneLayerProperty>, pub polygons: Vec<PcbZonePolygon>, pub filled_polygons: Vec<PcbZoneFilledPolygon>, pub source_range: Range<usize>,
}

Fields§

§net: PcbNetRef§net_name: Option<String>

Exact optional (net_name ...) source value, before board-net resolution.

§has_explicit_net_name: bool§layers: Vec<String>§layers_plural: bool§locked: bool§uuid: Option<String>§name: Option<String>§hatch_style: String§hatch_pitch: f64§priority: i64§connect_pads_mode: Option<String>§connect_pads_clearance: f64§min_thickness: f64§filled_areas_thickness: bool§fill_enabled: bool§fill_mode: Option<String>§hatch_thickness: Option<f64>§hatch_gap: Option<f64>§hatch_orientation: Option<f64>§hatch_smoothing_level: Option<i64>

KiCad’s hatch-fill refinements, as stored (hatch_smoothing_level, hatch_smoothing_value, hatch_border_algorithm, hatch_min_hole_area); absent when the file omits them.

§hatch_smoothing_value: Option<f64>§hatch_border_algorithm: Option<String>§hatch_min_hole_area: Option<f64>§thermal_gap: f64§thermal_bridge_width: f64§island_removal_mode: Option<i64>§island_area_min: Option<f64>§unmodeled_fill_settings: Vec<String>

Explicit fill children whose semantics are not represented by the promoted typed fields. Consumers that rewrite zones must reject or deliberately map these tokens rather than assuming a solid fill.

§keepout: Option<PcbZoneKeepout>§placement: Option<PcbZonePlacement>§layer_properties: Vec<PcbZoneLayerProperty>§polygons: Vec<PcbZonePolygon>§filled_polygons: Vec<PcbZoneFilledPolygon>§source_range: Range<usize>

Trait Implementations§

Source§

impl Clone for PcbZone

Source§

fn clone(&self) -> PcbZone

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for PcbZone

Source§

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

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

impl PartialEq for PcbZone

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for PcbZone

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> Same for T

Source§

type Output = T

Should always be Self
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.