Struct aoc::year2021::day24::Constraint
source · pub struct Constraint {
index: usize,
value: i32,
}
Expand description
Convert matching pairs of blocks into constraints.
For the first digit value
is -(k₁ + k₂)
and second digit value is k₁ + k₂
.
Fields§
§index: usize
§value: i32
Implementations§
Auto Trait Implementations§
impl Freeze for Constraint
impl RefUnwindSafe for Constraint
impl Send for Constraint
impl Sync for Constraint
impl Unpin 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