pub struct Testcase {
pub index: usize,
pub title: String,
pub test_in: String,
pub test_out: String,
pub is_validator: bool,
}
Expand description
Testcase
is a deserialized representation of a testcase for a Clash of
Code or I/O puzzle.
Fields§
§index: usize
index
is the number of the test/validator, starting from 1.
title: String
title
is a human readable name for the test/validator
test_in: String
test_in
is the input that a solution reads from STDIN
test_out: String
test_out
is the output that a solution is expected to print to STDOUT
is_validator: bool
is_validator
is true for testcases that are not normally visible when
solving a puzzle on CodinGame.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Testcase
impl<'de> Deserialize<'de> for Testcase
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Testcase
impl RefUnwindSafe for Testcase
impl Send for Testcase
impl Sync for Testcase
impl Unpin for Testcase
impl UnwindSafe for Testcase
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more