Struct advent_of_code_2023::day_6::Race
source · struct Race {
duration: i64,
distance_record: i64,
}
Expand description
A race duration, with the distance to beat in that time
Fields§
§duration: i64
§distance_record: i64
Implementations§
Trait Implementations§
source§impl PartialEq<Race> for Race
impl PartialEq<Race> for Race
impl Eq for Race
impl StructuralEq for Race
impl StructuralPartialEq for Race
Auto Trait Implementations§
impl RefUnwindSafe for Race
impl Send for Race
impl Sync for Race
impl Unpin for Race
impl UnwindSafe for Race
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.