Trait ParseInput

Source
pub trait ParseInput<'a, const DAY: u32, const PART: u8> {
    type Parsed;

    // Required method
    fn parse_input(&'a self, input: &'a str) -> Self::Parsed;
}
Expand description

Implement this trait to parse the raw input into a more useful type for your Solution to use as input.

See Solution::Input

Required Associated Types§

Required Methods§

Source

fn parse_input(&'a self, input: &'a str) -> Self::Parsed

Implementations on Foreign Types§

Source§

impl<'a, T, const DAY: u32, const PART: u8> ParseInput<'a, DAY, PART> for &T
where T: ParseInput<'a, DAY, PART>,

Source§

type Parsed = <T as ParseInput<'a, DAY, PART>>::Parsed

Source§

fn parse_input(&'a self, input: &'a str) -> Self::Parsed

Implementors§