Skip to main content

Problem

Struct Problem 

Source
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: Scalar

The 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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.