pub struct Clash { /* private fields */ }Expand description
Clash represents a deserialized Clash of Code or I/O puzzle.
Implementations§
Source§impl Clash
impl Clash
pub fn testcases(&self) -> &Vec<Testcase>
pub fn codingame_link(&self) -> String
pub fn title(&self) -> &str
pub fn statement(&self) -> &str
pub fn constraints(&self) -> Option<&str>
pub fn stub_generator(&self) -> Option<&str>
pub fn input_description(&self) -> &str
pub fn output_description(&self) -> &str
pub fn is_reverse(&self) -> bool
pub fn is_fastest(&self) -> bool
pub fn is_shortest(&self) -> bool
pub fn is_reverse_only(&self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Clash
impl<'de> Deserialize<'de> for Clash
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 Clash
impl RefUnwindSafe for Clash
impl Send for Clash
impl Sync for Clash
impl Unpin for Clash
impl UnwindSafe for Clash
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> 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