[][src]Struct rust_birthday::RustBirthday

pub struct RustBirthday { /* fields omitted */ }

RustBirthday struct used to compute Rust's birthday from date provided

Implementations

impl RustBirthday[src]

pub fn new() -> RustBirthday[src]

Returns a RustBirthday instance initialised comparison date of today.

pub fn set_birthday(y: i32, m: u32, d: u32) -> RustBirthday[src]

Returns a RustBirthday with a manually specified comparison date. Primarily used for testing.

pub fn is_now(&mut self) -> bool[src]

Returns a bool depending on if RustBirthday.date is equal to Rust's birtjday.

Trait Implementations

impl Default for RustBirthday[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.