#[repr(C)]pub struct ColorDateTime {
pub year: u16,
pub month: u16,
pub day_of_the_month: u16,
pub hours: u16,
pub minutes: u16,
pub seconds: u16,
}
Fields§
§year: u16
§month: u16
§day_of_the_month: u16
§hours: u16
§minutes: u16
§seconds: u16
Implementations§
Source§impl ColorDateTime
impl ColorDateTime
Sourcepub fn new_from_slice(slice: &[u8]) -> Result<ColorDateTime, CmsError>
pub fn new_from_slice(slice: &[u8]) -> Result<ColorDateTime, CmsError>
Parses slice for date time
Trait Implementations§
Source§impl Clone for ColorDateTime
impl Clone for ColorDateTime
Source§fn clone(&self) -> ColorDateTime
fn clone(&self) -> ColorDateTime
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ColorDateTime
impl Debug for ColorDateTime
Source§impl Default for ColorDateTime
impl Default for ColorDateTime
Source§fn default() -> ColorDateTime
fn default() -> ColorDateTime
Returns the “default value” for a type. Read more
Source§impl Ord for ColorDateTime
impl Ord for ColorDateTime
Source§fn cmp(&self, other: &ColorDateTime) -> Ordering
fn cmp(&self, other: &ColorDateTime) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ColorDateTime
impl PartialEq for ColorDateTime
Source§impl PartialOrd for ColorDateTime
impl PartialOrd for ColorDateTime
impl Copy for ColorDateTime
impl Eq for ColorDateTime
impl StructuralPartialEq for ColorDateTime
Auto Trait Implementations§
impl Freeze for ColorDateTime
impl RefUnwindSafe for ColorDateTime
impl Send for ColorDateTime
impl Sync for ColorDateTime
impl Unpin for ColorDateTime
impl UnwindSafe for ColorDateTime
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more