pub trait IsThirteen {
// Required method
fn thirteen(&self) -> bool;
}Expand description
A type that can be compared to thirteen. This trait is implemented for all primitive types and
&str.
Required Methods§
Implementations on Foreign Types§
Source§impl IsThirteen for &str
impl IsThirteen for &str
Source§fn thirteen(&self) -> bool
fn thirteen(&self) -> bool
Returns true if:
selfequals"13"or"B"selfis 13 characters long and all characters are equal to each other- The lowercase version of
selfis included inthirteen_strings::THIRTEEN_STRINGS