pub struct LocalTime(/* private fields */);Expand description
A wall-clock time of day (no date, no time zone). Backed by jiff.
Implementations§
Source§impl LocalTime
impl LocalTime
Sourcepub fn new(
hour: i8,
minute: i8,
second: i8,
nanosecond: i32,
) -> Result<Self, MgError>
pub fn new( hour: i8, minute: i8, second: i8, nanosecond: i32, ) -> Result<Self, MgError>
Creates a time from its components, erroring on an invalid time.
pub fn hour(&self) -> i8
pub fn minute(&self) -> i8
pub fn second(&self) -> i8
Sourcepub fn nanosecond(&self) -> i32
pub fn nanosecond(&self) -> i32
Sub-second component, in nanoseconds (0..=999_999_999).
Trait Implementations§
impl Copy for LocalTime
impl Eq for LocalTime
impl StructuralPartialEq for LocalTime
Auto Trait Implementations§
impl Freeze for LocalTime
impl RefUnwindSafe for LocalTime
impl Send for LocalTime
impl Sync for LocalTime
impl Unpin for LocalTime
impl UnsafeUnpin for LocalTime
impl UnwindSafe for LocalTime
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