Skip to main content

Enclosure

Struct Enclosure 

Source
pub struct Enclosure<V: Variable> {
    pub boxes: Vec<Option<V>>,
    pub freedom: Vec<usize>,
    pub total: usize,
    pub failures: Vec<(Vec<usize>, EncloseError)>,
    pub evaluations: usize,
    /* private fields */
}
Expand description

An enclosure of a true solution, group by group, and how free the blocks are (see System::enclose).

Fields§

§boxes: Vec<Option<V>>

Per block, every value it could have at the true solution its group was proven to hold — None for a block whose group was not enclosed, or not proven.

§freedom: Vec<usize>

Per block, how many independent ways it can still move: decided over the proven box, or — not proven — at the point.

§total: usize

How many independent ways the blocks can move together.

§failures: Vec<(Vec<usize>, EncloseError)>

Why the groups not proven were not, each with its blocks.

§evaluations: usize

How many times the equations were made to enclose it — every group’s at once: the work it took, which a test can bound.

Trait Implementations§

Source§

impl<V: Debug + Variable> Debug for Enclosure<V>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<V> Freeze for Enclosure<V>

§

impl<V> RefUnwindSafe for Enclosure<V>
where V: RefUnwindSafe,

§

impl<V> Send for Enclosure<V>
where V: Send,

§

impl<V> Sync for Enclosure<V>
where V: Sync,

§

impl<V> Unpin for Enclosure<V>
where V: Unpin,

§

impl<V> UnsafeUnpin for Enclosure<V>

§

impl<V> UnwindSafe for Enclosure<V>
where V: UnwindSafe,

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.