Enum libreda_lefdef::def_ast::PinPortStatement
source · pub enum PinPortStatement {
Layer {
layer_name: String,
mask_num: Option<MaskNum>,
spacing_or_width: Option<SpacingOrDesignRuleWidth>,
rect: Rect<Coord>,
},
Polygon {
layer_name: String,
mask_num: Option<MaskNum>,
spacing_or_width: Option<SpacingOrDesignRuleWidth>,
polygon: SimplePolygon<Coord>,
},
Via {
via_name: String,
mask_num: Option<ViaMaskNum>,
location: Point<Coord>,
},
}Expand description
Definition of the shapes of a pin port.
Variants§
Layer
Rectangular shape of the pin port.
Fields
§
spacing_or_width: Option<SpacingOrDesignRuleWidth>SPACING: minimum spacing between other routing shapes an this pin. DESIGNRULEWIDTH: effective width of this pin used for calculating spacing.
Polygon
Polygon shape of the pin port.
Fields
§
spacing_or_width: Option<SpacingOrDesignRuleWidth>SPACING: minimum spacing between other routing shapes an this pin. DESIGNRULEWIDTH: effective width of this pin used for calculating spacing.
§
polygon: SimplePolygon<Coord>Polygon shape on this port.
Via
Via which is part of the pin port.
Trait Implementations§
source§impl Clone for PinPortStatement
impl Clone for PinPortStatement
source§fn clone(&self) -> PinPortStatement
fn clone(&self) -> PinPortStatement
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for PinPortStatement
impl RefUnwindSafe for PinPortStatement
impl Send for PinPortStatement
impl Sync for PinPortStatement
impl Unpin for PinPortStatement
impl UnwindSafe for PinPortStatement
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> 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