pub enum Resolved {
Constraint {
kind: Kind,
a: On<Geometry>,
b: On<Geometry>,
},
Joint {
kind: JointKind,
a: On<Connector>,
b: On<Connector>,
},
Coupling {
kind: CouplingKind,
joints: [String; 2],
},
Fixed {
body: String,
},
}Expand description
A mate as a solve takes it, its entities resolved where their parts
are: the value of its target (mate). It reads no state, so a part
moved does not resolve it again.
Variants§
Constraint
Joint
Coupling
The joints it ties, by their names.
Fixed
The placed part body held where it is.
Implementations§
Trait Implementations§
Source§impl HasElements<Resolved> for Resolved
impl HasElements<Resolved> for Resolved
Source§type Element<'a> = &'a Resolved
type Element<'a> = &'a Resolved
What an element resolves to: a borrow of it, or what it gives.
Source§fn element(&self, name: &str) -> GeopResult<&Resolved>
fn element(&self, name: &str) -> GeopResult<&Resolved>
The element
name, or why there is none.Source§fn names_target(name: &str) -> bool
fn names_target(name: &str) -> bool
Whether the target named
name could be one of this type: what
tells a pick of an element of it from one of a target of another
type with elements of the same kind (ElementReference::from_picked).
The singleton’s name, for a singleton; any name, by default.impl StructuralPartialEq for Resolved
Source§impl Target for Resolved
Each mate’s own.
impl Target for Resolved
Each mate’s own.
Source§const CHAIN: bool = false
const CHAIN: bool = false
Whether several steps may produce a target of this type, each from
what the steps before left (see
crate::reader::Reader::previous):
the model, the datums, the parameters’ values, the listings — what
a program accumulates. A target that is not a chain — a sketch, a
placed part — has one producer, and a second is an error naming
both.Auto Trait Implementations§
impl Freeze for Resolved
impl RefUnwindSafe for Resolved
impl Send for Resolved
impl Sync for Resolved
impl Unpin for Resolved
impl UnsafeUnpin for Resolved
impl UnwindSafe for Resolved
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