pub struct PcbPrimitiveCommon {
pub layer: Layer,
pub flags: PcbFlags,
pub unique_id: Option<String>,
}Expand description
Common fields for all PCB primitives.
Fields§
§layer: LayerPCB layer.
flags: PcbFlagsFlags.
unique_id: Option<String>Unique ID (from UniqueIdPrimitiveInformation).
Implementations§
Source§impl PcbPrimitiveCommon
impl PcbPrimitiveCommon
Sourcepub fn read_from<R: Read>(reader: &mut R) -> Result<Self>
pub fn read_from<R: Read>(reader: &mut R) -> Result<Self>
Read common primitive fields from binary stream.
Sourcepub fn is_tenting_top(&self) -> bool
pub fn is_tenting_top(&self) -> bool
Check if top tenting is enabled.
Sourcepub fn is_tenting_bottom(&self) -> bool
pub fn is_tenting_bottom(&self) -> bool
Check if bottom tenting is enabled.
Sourcepub fn is_keepout(&self) -> bool
pub fn is_keepout(&self) -> bool
Check if this is a keepout.
Trait Implementations§
Source§impl Clone for PcbPrimitiveCommon
impl Clone for PcbPrimitiveCommon
Source§fn clone(&self) -> PcbPrimitiveCommon
fn clone(&self) -> PcbPrimitiveCommon
Returns a duplicate of the value. Read more
1.0.0 · 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 PcbPrimitiveCommon
impl Debug for PcbPrimitiveCommon
Source§impl Default for PcbPrimitiveCommon
impl Default for PcbPrimitiveCommon
Source§fn default() -> PcbPrimitiveCommon
fn default() -> PcbPrimitiveCommon
Returns the “default value” for a type. Read more
Source§impl FromBinary for PcbPrimitiveCommon
impl FromBinary for PcbPrimitiveCommon
Auto Trait Implementations§
impl Freeze for PcbPrimitiveCommon
impl RefUnwindSafe for PcbPrimitiveCommon
impl Send for PcbPrimitiveCommon
impl Sync for PcbPrimitiveCommon
impl Unpin for PcbPrimitiveCommon
impl UnwindSafe for PcbPrimitiveCommon
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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