pub struct ShapeRef<'a, L: LayoutBase + ?Sized> {
    pub(super) base: &'a L,
    pub(super) id: L::ShapeId,
}
Expand description

Reference to a shape.

Fields

base: &'a L

Reference to the parent data structure.

id: L::ShapeId

ID of the shape.

Implementations

Get the net which is connected to this shape, if any.

Get the pin which is connected to this shape, if any.

Get the shape ID.

Get the cell where this shape lives.

Get the layer of the shape.

Get the cloned geometry struct representing this shape.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.