Struct advent_of_code_2023::day_3::PartNumber
source · struct PartNumber {
number: u32,
x: usize,
y: usize,
}
Expand description
Represents a part number as the position of the first digit, and the number it represents
Fields§
§number: u32
§x: usize
§y: usize
Implementations§
source§impl PartNumber
impl PartNumber
Trait Implementations§
source§impl Debug for PartNumber
impl Debug for PartNumber
source§impl PartialEq<PartNumber> for PartNumber
impl PartialEq<PartNumber> for PartNumber
source§fn eq(&self, other: &PartNumber) -> bool
fn eq(&self, other: &PartNumber) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PartNumber
impl StructuralEq for PartNumber
impl StructuralPartialEq for PartNumber
Auto Trait Implementations§
impl RefUnwindSafe for PartNumber
impl Send for PartNumber
impl Sync for PartNumber
impl Unpin for PartNumber
impl UnwindSafe for PartNumber
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.