Skip to main content

Module port

Module port 

Source

Structs§

PortShape
One pin drawn as its own boundary port: the body its rect register places inside its owner’s interior view, facing by crate::shape::pin::orientation. The same pin seen from the parent scope is a stub on its owner’s rect instead — that drawing goes through BlockShape, and Drawing::pin_shape decides which of the two a PinId names here.

Constants§

MIN_PORT_WIDTH
Default/minimum port width in grid units. Gives the default "Port" name room to render.
PORT_HEIGHT
The canonical interior height of a port body, in grid cells.

Functions§

width_for_labels
Minimum port width (grid units) that comfortably fits the pin’s labels: half the longer of name / type_label, floored at MIN_PORT_WIDTH.