Struct advent_of_code_2022::day_12::Cell
source · struct Cell {
dist: usize,
cost: usize,
coords: (usize, usize),
}
Expand description
This is juts copied from the example BinaryHeap
with position swapped for coords.
Fields§
§dist: usize
§cost: usize
§coords: (usize, usize)
Trait Implementations§
source§impl Ord for Cell
impl Ord for Cell
source§impl PartialEq<Cell> for Cell
impl PartialEq<Cell> for Cell
source§impl PartialOrd<Cell> for Cell
impl PartialOrd<Cell> for Cell
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Cell
impl Eq for Cell
impl StructuralEq for Cell
impl StructuralPartialEq for Cell
Auto Trait Implementations§
impl RefUnwindSafe for Cell
impl Send for Cell
impl Sync for Cell
impl Unpin for Cell
impl UnwindSafe for Cell
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