pub struct Intervals { /* private fields */ }Expand description
Intervals helper for constraint algebra.
Implementations§
Source§impl Intervals
impl Intervals
Sourcepub fn is_subset_of(
&mut self,
candidate: &dyn Constraint,
constraint: &dyn Constraint,
) -> bool
pub fn is_subset_of( &mut self, candidate: &dyn Constraint, constraint: &dyn Constraint, ) -> bool
Check if candidate is a subset of constraint.
Sourcepub fn have_intersections(
&mut self,
a: &dyn Constraint,
b: &dyn Constraint,
) -> bool
pub fn have_intersections( &mut self, a: &dyn Constraint, b: &dyn Constraint, ) -> bool
Check if two constraints have any intersection.
Sourcepub fn get(&mut self, constraint: &dyn Constraint) -> IntervalResult
pub fn get(&mut self, constraint: &dyn Constraint) -> IntervalResult
Get intervals for a constraint (with caching).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Intervals
impl RefUnwindSafe for Intervals
impl Send for Intervals
impl Sync for Intervals
impl Unpin for Intervals
impl UnwindSafe for Intervals
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