Struct playdate::system::time::PDDateTime
source · #[repr(C)]pub struct PDDateTime {
pub year: u16,
pub month: u8,
pub day: u8,
pub weekday: u8,
pub hour: u8,
pub minute: u8,
pub second: u8,
}
Fields§
§year: u16
§month: u8
§day: u8
§weekday: u8
§hour: u8
§minute: u8
§second: u8
Trait Implementations§
source§impl Clone for PDDateTime
impl Clone for PDDateTime
source§fn clone(&self) -> PDDateTime
fn clone(&self) -> PDDateTime
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PDDateTime
impl Debug for PDDateTime
source§impl Default for PDDateTime
impl Default for PDDateTime
source§fn default() -> PDDateTime
fn default() -> PDDateTime
Returns the “default value” for a type. Read more
source§impl Hash for PDDateTime
impl Hash for PDDateTime
source§impl Ord for PDDateTime
impl Ord for PDDateTime
source§impl PDDateTimeExt for PDDateTime
impl PDDateTimeExt for PDDateTime
fn to_epoch(&self) -> u32
fn from_epoch(epoch: u32) -> PDDateTime
fn from_epoch_to(dt: &mut PDDateTime, epoch: u32)
source§impl PartialEq for PDDateTime
impl PartialEq for PDDateTime
source§impl PartialOrd for PDDateTime
impl PartialOrd for PDDateTime
impl Copy for PDDateTime
impl Eq for PDDateTime
impl StructuralPartialEq for PDDateTime
Auto Trait Implementations§
impl Freeze for PDDateTime
impl RefUnwindSafe for PDDateTime
impl Send for PDDateTime
impl Sync for PDDateTime
impl Unpin for PDDateTime
impl UnwindSafe for PDDateTime
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
§impl<T> ToOwned for Twhere
T: Clone,
impl<T> ToOwned for Twhere
T: Clone,
§impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes