pub struct PortDeclaration {
pub name: String,
pub purpose: String,
pub symbol_unit: Option<u32>,
pub points: Vec<PortPoint>,
}Expand description
One declared port: a named group of connection points with one purpose.
Fields§
§name: StringThe group name (J1), part-local and unique within the document.
purpose: StringWhat kind of connection these points are: pcb, wiring, piping, …
Free-form and deliberately not an enum — the set is extensible.
symbol_unit: Option<u32>The SYMBOL UNIT whose pins bind into this group, 1-based. None means
derive it — see unit_map. A group that maps to no unit takes no
pins, which is what a piping port wants.
points: Vec<PortPoint>Trait Implementations§
Source§impl Clone for PortDeclaration
impl Clone for PortDeclaration
Source§impl Debug for PortDeclaration
impl Debug for PortDeclaration
Source§impl Default for PortDeclaration
impl Default for PortDeclaration
Source§impl<'de> Deserialize<'de> for PortDeclaration
impl<'de> Deserialize<'de> for PortDeclaration
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PortDeclaration
impl PartialEq for PortDeclaration
Source§impl Serialize for PortDeclaration
impl Serialize for PortDeclaration
impl StructuralPartialEq for PortDeclaration
Auto Trait Implementations§
impl Freeze for PortDeclaration
impl RefUnwindSafe for PortDeclaration
impl Send for PortDeclaration
impl Sync for PortDeclaration
impl Unpin for PortDeclaration
impl UnsafeUnpin for PortDeclaration
impl UnwindSafe for PortDeclaration
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