pub struct Variable(/* private fields */);Expand description
An actual clock (index 1 or greater), used for resetting or freeing a clock.
Unlike Clock, a Variable cannot represent the reference clock:
Variable::new(0) returns None. Convert a variable to a Clock
with .into() to use it in a Constraint.
Implementations§
Trait Implementations§
impl Copy for Variable
impl Eq for Variable
impl Invariant for Variable
Source§impl Ord for Variable
impl Ord for Variable
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Variable
impl PartialOrd for Variable
impl StructuralPartialEq for Variable
Auto Trait Implementations§
impl Forget for Variable
impl Freeze for Variable
impl Move for Variable
impl RefUnwindSafe for Variable
impl Send for Variable
impl Sync for Variable
impl Unpin for Variable
impl UnsafeUnpin for Variable
impl UnwindSafe for Variable
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