pub struct Port {
pub id: EntityId,
pub type_name: String,
pub name: Option<String>,
pub flow: FlowDirection,
pub element: Option<EntityId>,
pub attachment: Option<Attachment>,
}Expand description
A port as the file states it.
Fields§
§id: EntityIdThe IfcPort subtype entity.
type_name: StringDeclared type, upper-cased.
name: Option<String>Name, when present.
flow: FlowDirectionFlow direction, NotDefined when the file omits it.
element: Option<EntityId>The element this port belongs to, when the file attaches it.
IfcPort.ContainedIn is SET [0:1], so a port has at most one owning
element. A free-floating port is legal and is reported as None.
attachment: Option<Attachment>Which relationship attached it.
Trait Implementations§
impl Eq for Port
impl StructuralPartialEq for Port
Auto Trait Implementations§
impl Freeze for Port
impl RefUnwindSafe for Port
impl Send for Port
impl Sync for Port
impl Unpin for Port
impl UnsafeUnpin for Port
impl UnwindSafe for Port
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