pub struct BlockItems {
pub dists: Range<usize>,
pub softs: Range<usize>,
pub before: Range<usize>,
pub real_conds: Range<usize>,
pub real_dists: Range<usize>,
pub real_before: Range<usize>,
pub disables: Range<usize>,
}Expand description
What a constraint block holds besides boolean conjuncts: a range of each
table of its program (or of the builder’s ConstraintSet, empty when the
block added nothing to that table).
Fields§
§dists: Range<usize>dists (Program::dists), those of the block’s soft constraints
included.
softs: Range<usize>soft constraints (Program::softs).
before: Range<usize>solve ... before edges over integral variables (Program::before).
real_conds: Range<usize>Constraints over real variables (real.conds of the program).
real_dists: Range<usize>Real dists (real.dists of the program).
real_before: Range<usize>solve ... before edges over real variables (real.before of the
program).
disables: Range<usize>disable softs: indices into the table super::priority::Soft::disabled_by
names (Program::n_disables counts it).
Trait Implementations§
Source§impl Clone for BlockItems
impl Clone for BlockItems
Source§impl Debug for BlockItems
impl Debug for BlockItems
Source§impl Default for BlockItems
impl Default for BlockItems
Source§impl<'de> Deserialize<'de> for BlockItems
impl<'de> Deserialize<'de> for BlockItems
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BlockItems
Source§impl PartialEq for BlockItems
impl PartialEq for BlockItems
Source§impl Serialize for BlockItems
impl Serialize for BlockItems
impl StructuralPartialEq for BlockItems
Auto Trait Implementations§
impl Freeze for BlockItems
impl RefUnwindSafe for BlockItems
impl Send for BlockItems
impl Sync for BlockItems
impl Unpin for BlockItems
impl UnsafeUnpin for BlockItems
impl UnwindSafe for BlockItems
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.