pub enum ConditionKind {
Show 13 variants
NodeCombo {
node: usize,
to_symmetry_line: bool,
to_paper_edge: bool,
to_paper_corner: bool,
x_fixed: bool,
x_fix_value: TmFloat,
y_fixed: bool,
y_fix_value: TmFloat,
},
NodeFixed {
node: usize,
x_fixed: bool,
y_fixed: bool,
x_fix_value: TmFloat,
y_fix_value: TmFloat,
},
NodeOnCorner {
node: usize,
},
NodeOnEdge {
node: usize,
},
NodeSymmetric {
node: usize,
},
NodesPaired {
node1: usize,
node2: usize,
},
NodesCollinear {
node1: usize,
node2: usize,
node3: usize,
},
EdgeLengthFixed {
edge: usize,
},
EdgesSameStrain {
edge1: usize,
edge2: usize,
},
PathCombo {
node1: usize,
node2: usize,
is_angle_fixed: bool,
angle: TmFloat,
is_angle_quant: bool,
quant: usize,
quant_offset: TmFloat,
},
PathActive {
node1: usize,
node2: usize,
},
PathAngleFixed {
node1: usize,
node2: usize,
angle: TmFloat,
},
PathAngleQuant {
node1: usize,
node2: usize,
quant: usize,
quant_offset: TmFloat,
},
}Expand description
Supported TreeMaker condition variants.
Variants§
NodeCombo
Fields
NodeFixed
NodeOnCorner
NodeOnEdge
NodeSymmetric
NodesPaired
NodesCollinear
EdgeLengthFixed
EdgesSameStrain
PathCombo
Fields
PathActive
PathAngleFixed
PathAngleQuant
Trait Implementations§
Source§impl Clone for ConditionKind
impl Clone for ConditionKind
Source§fn clone(&self) -> ConditionKind
fn clone(&self) -> ConditionKind
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 ConditionKind
impl Debug for ConditionKind
Source§impl<'de> Deserialize<'de> for ConditionKind
impl<'de> Deserialize<'de> for ConditionKind
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 ConditionKind
impl RefUnwindSafe for ConditionKind
impl Send for ConditionKind
impl Sync for ConditionKind
impl Unpin for ConditionKind
impl UnsafeUnpin for ConditionKind
impl UnwindSafe for ConditionKind
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