pub struct Problem<'p> {
pub free: BTreeMap<String, Mobility>,
pub preferences: Vec<&'p dyn Preference>,
pub scale: Scalar,
pub structure: Option<&'p Structure>,
}Expand description
What a solve may move, and towards what.
Fields§
§free: BTreeMap<String, Mobility>The values the solve may move, by name, and how; it leaves every
other value — and every one Mobility::Fixed — as it is.
preferences: Vec<&'p dyn Preference>§scale: ScalarThe part’s size: what a constraint holds to a part in
geop_core_math::solvers::system::RELATIVE_TOLERANCE of, how
far one step may go, and what a turn is measured against when a
value stays where it was.
structure: Option<&'p Structure>The groups a solve of the same system found before, a hair away —
the last event of a drag — to solve in rather than find them again
(see System::solve_unproven_in); found if none is given, or one
of another system.
Auto Trait Implementations§
impl<'p> !RefUnwindSafe for Problem<'p>
impl<'p> !Send for Problem<'p>
impl<'p> !Sync for Problem<'p>
impl<'p> !UnwindSafe for Problem<'p>
impl<'p> Freeze for Problem<'p>
impl<'p> Unpin for Problem<'p>
impl<'p> UnsafeUnpin for Problem<'p>
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