pub struct PcbSegment {
pub start_x: f64,
pub start_y: f64,
pub end_x: f64,
pub end_y: f64,
pub width: Option<f64>,
pub layer: Option<String>,
pub layers: Option<Vec<String>>,
pub solder_mask_margin: Option<f64>,
pub locked: bool,
pub net: PcbNetRef,
pub uuid: Option<String>,
pub source_range: Range<usize>,
}Fields§
§start_x: f64§start_y: f64§end_x: f64§end_y: f64§width: Option<f64>§layer: Option<String>§layers: Option<Vec<String>>Plural source selector, distinct from the singular layer field.
Some([]) preserves an explicitly empty (layers) form.
solder_mask_margin: Option<f64>Local solder-mask opening margin in millimetres, without rule resolution.
locked: boolSource editing lock state. False when the source omits or disables it.
net: PcbNetRef§uuid: Option<String>§source_range: Range<usize>Trait Implementations§
Source§impl Clone for PcbSegment
impl Clone for PcbSegment
Source§fn clone(&self) -> PcbSegment
fn clone(&self) -> PcbSegment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PcbSegment
impl Debug for PcbSegment
Source§impl PartialEq for PcbSegment
impl PartialEq for PcbSegment
impl StructuralPartialEq for PcbSegment
Auto Trait Implementations§
impl Freeze for PcbSegment
impl RefUnwindSafe for PcbSegment
impl Send for PcbSegment
impl Sync for PcbSegment
impl Unpin for PcbSegment
impl UnsafeUnpin for PcbSegment
impl UnwindSafe for PcbSegment
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