Struct advent_of_code_2023::day_2::Draw
source · struct Draw {
red: u8,
green: u8,
blue: u8,
}
Expand description
A record of the cubes shown in a single draw from a bag
Fields§
§red: u8
§green: u8
§blue: u8
Implementations§
Trait Implementations§
source§impl PartialEq<Draw> for Draw
impl PartialEq<Draw> for Draw
impl Eq for Draw
impl StructuralEq for Draw
impl StructuralPartialEq for Draw
Auto Trait Implementations§
impl RefUnwindSafe for Draw
impl Send for Draw
impl Sync for Draw
impl Unpin for Draw
impl UnwindSafe for Draw
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.