pub enum InputType {
Example,
Real,
}
Expand description
Enum for distinguishing between example and real inputs.
Some puzzles require this as different constants may be used for example inputs to simplify the
problem. For example 2022 day 15 part 1, which uses
y=10
in the example, but y=2000000
for real inputs.
Most puzzle solutions should ignore this value.
Variants§
Trait Implementations§
source§impl Ord for InputType
impl Ord for InputType
source§impl PartialOrd for InputType
impl PartialOrd for InputType
impl Copy for InputType
impl Eq for InputType
impl StructuralPartialEq for InputType
Auto Trait Implementations§
impl Freeze for InputType
impl RefUnwindSafe for InputType
impl Send for InputType
impl Sync for InputType
impl Unpin for InputType
impl UnwindSafe for InputType
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)