pub struct PortRecord {
pub point: Vec3,
pub direction: Vec3,
pub kind: PortKind,
pub extension: f64,
pub display_length: f64,
pub label: String,
}Expand description
A harness port a PORT feature published under its feature id. direction
is the unit vector a wire leaves the port along on side A; side B is
its negation. extension is the straight run a wire keeps from point
before it may bend (a spline anchor attached here takes it as its
forward/backward distance), display_length the length of the drawn port
line, and label the user’s portName (the harness panel’s endpoint text;
references always use the feature id).
Fields§
§point: Vec3§direction: Vec3§kind: PortKind§extension: f64§display_length: f64§label: StringImplementations§
Source§impl PortRecord
impl PortRecord
Sourcepub fn side_direction(&self, side: PortSide) -> Vec3
pub fn side_direction(&self, side: PortSide) -> Vec3
The direction a wire leaves this port along on side (A = the port
direction, B = its negation).
Trait Implementations§
Source§impl Clone for PortRecord
impl Clone for PortRecord
Source§fn clone(&self) -> PortRecord
fn clone(&self) -> PortRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PortRecord
impl Debug for PortRecord
Source§impl<'de> Deserialize<'de> for PortRecord
impl<'de> Deserialize<'de> for PortRecord
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
Auto Trait Implementations§
impl Freeze for PortRecord
impl RefUnwindSafe for PortRecord
impl Send for PortRecord
impl Sync for PortRecord
impl Unpin for PortRecord
impl UnsafeUnpin for PortRecord
impl UnwindSafe for PortRecord
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