pub struct Constraint {
pub from: TimePoint,
pub to: TimePoint,
pub lo: Option<Ticks>,
pub hi: Option<Ticks>,
}Expand description
A binary constraint lo <= t_to - t_from <= hi.
Fields§
§from: TimePointThe time point subtracted (t_i).
to: TimePointThe time point the difference is measured to (t_j).
lo: Option<Ticks>Lower bound on t_to - t_from; None means unbounded below.
hi: Option<Ticks>Upper bound on t_to - t_from; None means unbounded above.
Trait Implementations§
Source§impl Clone for Constraint
impl Clone for Constraint
impl Copy for Constraint
Source§impl Debug for Constraint
impl Debug for Constraint
impl Eq for Constraint
Source§impl Hash for Constraint
impl Hash for Constraint
Source§impl PartialEq for Constraint
impl PartialEq for Constraint
impl StructuralPartialEq for Constraint
Auto Trait Implementations§
impl Forget for Constraint
impl Freeze for Constraint
impl Move for Constraint
impl RefUnwindSafe for Constraint
impl Send for Constraint
impl Sync for Constraint
impl Unpin for Constraint
impl UnsafeUnpin for Constraint
impl UnwindSafe for Constraint
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