Skip to main content

Remade

Struct Remade 

Source
pub struct Remade(/* private fields */);
Expand description

The constraints a solve made again at the states it tried (Remade::constraints), by step, each with the state it read: a step is made again only where a state it read changed. A solve asks a pendant’s constraints where it was carried, and again where its own solve starts, from there; and where it ends, as its last step left it.

Implementations§

Source§

impl Remade

Source

pub fn constraints( &self, reader: &Reader<'_>, which: &[&DefinedAt], ) -> Vec<GeopResult<Constraint>> ⓘ

The constraints which of the part reader reads, as Constraints::of names their states — behind their paths — each made again by its step’s generator of what reader reads: at the state it tries (Reader::trying), the constraints there, without running the program again. What a solve reads at every state it tries. A step several of whose constraints are asked is made once, and one whose state read is as it was when last made, not at all.

The make reads only the state and targets that read none — it refuses any other read (define_constraints) — so what it makes is what a run of the program at that state would, and only the state it read can change what it makes of the same part.

Counted (made_again).

Trait Implementations§

Source§

impl Default for Remade

Source§

fn default() -> Remade

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl !Freeze for Remade

§

impl !RefUnwindSafe for Remade

§

impl !Send for Remade

§

impl !Sync for Remade

§

impl !UnwindSafe for Remade

§

impl Unpin for Remade

§

impl UnsafeUnpin for Remade

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.