pub struct Axis {
pub name: String,
pub distance: Option<f64>,
pub nodes: Vec<NodeId>,
pub source: AxisSource,
}Expand description
1 本の通り芯。
Fields§
§name: String通り名(X1・Y2a など)。図面・一覧での識別に用いる。
distance: Option<f64>平行芯グループでの、グループ原点からの符号付き離れ [mm]。
AxisGroupKind::Other のグループでは None。
nodes: Vec<NodeId>この通りに属する節点。節点の座標が通り線上にある保証はない (芯ずれした柱をその通りの所属とするモデル化が実務で行われるため、 所属は座標から導かず、このリストを正とする)。
source: AxisSource出所。AxisSource::Manual の通りは自動生成で作り直さない。
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Axis
impl<'de> Deserialize<'de> for Axis
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
impl StructuralPartialEq for Axis
Auto Trait Implementations§
impl Freeze for Axis
impl RefUnwindSafe for Axis
impl Send for Axis
impl Sync for Axis
impl Unpin for Axis
impl UnsafeUnpin for Axis
impl UnwindSafe for Axis
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