Struct advent_of_code_2023::day_1::ValueExtractor
source · struct ValueExtractor {
pattern: Regex,
digit_mapper: fn(_: &str) -> u32,
}
Expand description
Describes how to find digits in a string, and how to turn those into their numeric representation
Fields§
§pattern: Regex
§digit_mapper: fn(_: &str) -> u32
Auto Trait Implementations§
impl RefUnwindSafe for ValueExtractor
impl Send for ValueExtractor
impl Sync for ValueExtractor
impl Unpin for ValueExtractor
impl UnwindSafe for ValueExtractor
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