pub enum Shift {
By(f64),
Same,
}Expand description
A Then that’s relative to what was there before: “the drawing goes up by 1 item”, “the selected item stays the same”.
Variants§
Implementations§
Source§impl Shift
impl Shift
Sourcepub fn apply(self, var: &Variable, before: Option<&Constraint>) -> Constraint
pub fn apply(self, var: &Variable, before: Option<&Constraint>) -> Constraint
What var can be afterwards, given what it could be before.
Trait Implementations§
impl Copy for Shift
impl StructuralPartialEq for Shift
Auto Trait Implementations§
impl Freeze for Shift
impl RefUnwindSafe for Shift
impl Send for Shift
impl Sync for Shift
impl Unpin for Shift
impl UnsafeUnpin for Shift
impl UnwindSafe for Shift
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