pub struct RTimeData {
pub sec: i64,
pub nsec: u32,
pub utc_offset: i32,
/* private fields */
}Expand description
Rust-side representation of a Ruby Time object. Stores seconds and nanoseconds since UNIX epoch, and UTC offset in seconds.
Fields§
§sec: i64Seconds since UNIX epoch (can be negative for times before 1970)
nsec: u32Nanoseconds within the current second (0..999_999_999)
utc_offset: i32UTC offset in seconds (e.g. +9h = 32400, -5h = -18000)
Implementations§
Source§impl RTimeData
impl RTimeData
pub fn new(sec: i64, nsec: u32, utc_offset: i32) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RTimeData
impl !RefUnwindSafe for RTimeData
impl Send for RTimeData
impl !Sync for RTimeData
impl Unpin for RTimeData
impl UnsafeUnpin for RTimeData
impl UnwindSafe for RTimeData
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