IsThirteen

Trait IsThirteen 

Source
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§

Source

fn thirteen(&self) -> bool

Returns true if self is thirteen.

Implementations on Foreign Types§

Source§

impl IsThirteen for &str

Source§

fn thirteen(&self) -> bool

Returns true if:

  • self equals "13" or "B"
  • self is 13 characters long and all characters are equal to each other
  • The lowercase version of self is included in thirteen_strings::THIRTEEN_STRINGS
Source§

impl IsThirteen for bool

Source§

fn thirteen(&self) -> bool

Returns false.

Source§

impl IsThirteen for char

Source§

fn thirteen(&self) -> bool

Returns true if self matches a thirteen character.

Source§

impl IsThirteen for f32

Source§

fn thirteen(&self) -> bool

Returns true if self is approximately 13.

Source§

impl IsThirteen for f64

Source§

fn thirteen(&self) -> bool

Returns true if self is approximately 13.

Source§

impl IsThirteen for i8

Source§

fn thirteen(&self) -> bool

Returns true if self == 13.

Source§

impl IsThirteen for i16

Source§

fn thirteen(&self) -> bool

Returns true if self == 13.

Source§

impl IsThirteen for i32

Source§

fn thirteen(&self) -> bool

Returns true if self == 13.

Source§

impl IsThirteen for i64

Source§

fn thirteen(&self) -> bool

Returns true if self == 13.

Source§

impl IsThirteen for i128

Source§

fn thirteen(&self) -> bool

Returns true if self == 13.

Source§

impl IsThirteen for isize

Source§

fn thirteen(&self) -> bool

Returns true if self == 13.

Source§

impl IsThirteen for u8

Source§

fn thirteen(&self) -> bool

Returns true if self == 13.

Source§

impl IsThirteen for u16

Source§

fn thirteen(&self) -> bool

Returns true if self == 13.

Source§

impl IsThirteen for u32

Source§

fn thirteen(&self) -> bool

Returns true if self == 13.

Source§

impl IsThirteen for u64

Source§

fn thirteen(&self) -> bool

Returns true if self == 13.

Source§

impl IsThirteen for u128

Source§

fn thirteen(&self) -> bool

Returns true if self == 13.

Source§

impl IsThirteen for ()

Source§

fn thirteen(&self) -> bool

Returns false.

Source§

impl IsThirteen for usize

Source§

fn thirteen(&self) -> bool

Returns true if self == 13.

Source§

impl IsThirteen for String

Source§

fn thirteen(&self) -> bool

Implementors§

Source§

impl IsThirteen for AnagramOf

Source§

impl IsThirteen for AtomicNumber<'_>

Source§

impl IsThirteen for Backwards<'_>

Source§

impl IsThirteen for CanSpell

Source§

impl IsThirteen for Roughly

Source§

impl IsThirteen for Within

Source§

impl<F, R> IsThirteen for Returns<F>
where F: Fn() -> R, R: IsThirteen,

Source§

impl<T> IsThirteen for GreaterThan<T>

Source§

impl<T> IsThirteen for LessThan<T>

Source§

impl<T, RemOutput> IsThirteen for DivisibleBy<T>
where T: Rem<Output = RemOutput> + FromPrimitive + Copy, RemOutput: PartialEq + FromPrimitive,