pub struct AocDatabase { /* private fields */ }
Implementations§
Source§impl AocDatabase
impl AocDatabase
pub fn get_input( &self, year: i32, day: u8, test: bool, ) -> Result<String, AocError>
pub fn set_input( &self, year: i32, day: u8, test: bool, input: String, ) -> Result<(), AocError>
pub fn has_input( &self, year: i32, day: u8, test: bool, ) -> Result<bool, AocError>
pub fn get_results( &self, year: i32, day: u8, part: Parts, test: bool, ) -> Result<String, AocError>
pub fn set_result( &self, year: i32, day: u8, test: bool, part: Parts, result: String, ) -> Result<(), AocError>
pub fn has_result( &self, year: i32, day: u8, part: Parts, test: bool, ) -> Result<bool, AocError>
Auto Trait Implementations§
impl Freeze for AocDatabase
impl !RefUnwindSafe for AocDatabase
impl Send for AocDatabase
impl Sync for AocDatabase
impl Unpin for AocDatabase
impl !UnwindSafe for AocDatabase
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