Struct 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

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

Trait Implementations

impl Clone for tm

fn clone(&self) -> Self

impl Copy for tm

impl Debug for tm

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for tm

impl Hash for tm

fn hash<__H: Hasher>(&self, state: &mut __H)

impl PartialEq for tm

fn eq(&self, other: &Self) -> bool

impl StructuralPartialEq for tm

Auto Trait Implementations

impl !Send for tm

impl !Sync for tm

impl Freeze for tm

impl RefUnwindSafe for tm

impl Unpin for tm

impl UnsafeUnpin for tm

impl UnwindSafe for tm

Blanket Implementations

impl<T> Any for tm where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for tm where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for tm where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for tm where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for tm

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for tm 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 tm where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for tm where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>