pub struct Problem { /* private fields */ }
Implementations§
Source§impl Problem
impl Problem
pub fn year(&self) -> u16
pub fn day(&self) -> u8
pub fn title(&self) -> &str
pub fn parts(&self) -> u8
pub fn parse<'a>( &self, input: &'a str, ) -> Result<Box<dyn Solver>, ParseError<'a>>
pub fn solve_all<'a>( &self, input: &'a str, ) -> Result<Vec<String>, ParseError<'a>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Problem
impl RefUnwindSafe for Problem
impl Send for Problem
impl Sync for Problem
impl Unpin for Problem
impl UnwindSafe for Problem
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