Struct advent_of_code_2023::day_5::AlmanacSection
source · struct AlmanacSection {
source: Category,
destination: Category,
ranges: Vec<AlmanacRange>,
}
Expand description
A mapping from one category of ids to another. Ranges are stored sorted by starting source id
Fields§
§source: Category
§destination: Category
§ranges: Vec<AlmanacRange>
Implementations§
source§impl AlmanacSection
impl AlmanacSection
fn new( source: Category, destination: Category, ranges: Vec<AlmanacRange> ) -> AlmanacSection
Trait Implementations§
source§impl Debug for AlmanacSection
impl Debug for AlmanacSection
source§impl PartialEq<AlmanacSection> for AlmanacSection
impl PartialEq<AlmanacSection> for AlmanacSection
source§fn eq(&self, other: &AlmanacSection) -> bool
fn eq(&self, other: &AlmanacSection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for AlmanacSection
impl StructuralEq for AlmanacSection
impl StructuralPartialEq for AlmanacSection
Auto Trait Implementations§
impl RefUnwindSafe for AlmanacSection
impl Send for AlmanacSection
impl Sync for AlmanacSection
impl Unpin for AlmanacSection
impl UnwindSafe for AlmanacSection
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.