Struct libc::tm

#[repr(C)]
pub struct tm {    
    pub tm_sec: ::c_int,
    pub tm_min: ::c_int,
    pub tm_hour: ::c_int,
    pub tm_mday: ::c_int,
    pub tm_mon: ::c_int,
    pub tm_year: ::c_int,
    pub tm_wday: ::c_int,
    pub tm_yday: ::c_int,
    pub tm_isdst: ::c_int,
    pub tm_gmtoff: ::c_long,
    pub tm_zone: *const ::c_char,
}

Fields

pub tm_sec: ::c_int
pub tm_min: ::c_int
pub tm_hour: ::c_int
pub tm_mday: ::c_int
pub tm_mon: ::c_int
pub tm_year: ::c_int
pub tm_wday: ::c_int
pub tm_yday: ::c_int
pub tm_isdst: ::c_int
pub tm_gmtoff: ::c_long
pub tm_zone: *const ::c_char

Trait Implementations

impl Clone for tm
fn clone(&Self) -> tm
impl Copy for tm
impl Debug for tm
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Eq for tm
impl Hash for tm
fn hash<__H: $crate::hash::Hasher>(&Self, state: &mut __H) -> ()
impl PartialEq<tm> for tm
fn eq(&Self, other: &tm) -> bool
fn ne(&Self, other: &tm) -> bool
impl StructuralEq for tm

Auto Trait Implementations

impl !Send for tm
impl !Sync for tm
impl RefUnwindSafe for tm
impl Unpin for tm
impl UnwindSafe for tm

Blanket Implementations

impl<T> Any for T
where
    T: 'static + ?Sized,
fn type_id(&Self) -> TypeId
impl<T> Borrow<T> for T
where
    T: ?Sized,
fn borrow(&Self) -> &T
impl<T> BorrowMut<T> for T
where
    T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T
impl<T> From<T> for T
fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for T
where
    U: From<T>,
fn into(Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl<T, U> TryFrom<U> for T
where
    U: Into<T>,
type Error = Infallible
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for T
where
    U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
fn try_into(Self) -> Result<U, <U as TryFrom<T>>::Error>