Enum ds1302::Hours[][src]

pub enum Hours {
    Hour24(u8),
    Hour12am(u8),
    Hour12pm(u8),
}
Expand description

Hour information: 12-hour (AM/PM) or 24-hour

Variants

Hour24(u8)

Tuple Fields

0: u8

Hour12am(u8)

Tuple Fields

0: u8

Hour12pm(u8)

Tuple Fields

0: u8

Implementations

Get the hour. return.1: None => Hour24 mode; Some(false) => pm; Some(true) => am;

Trait Implementations

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.