pub struct LocalTimeValue { /* private fields */ }Implementations§
Source§impl LocalTimeValue
impl LocalTimeValue
pub fn new( hour: u8, minute: u8, second: u8, nanos: u32, ) -> Result<Self, EncodeError>
pub fn hour(&self) -> u8
pub fn minute(&self) -> u8
pub fn second(&self) -> u8
pub fn nanos(&self) -> u32
pub fn as_jiff(&self) -> Time
pub fn nanos_since_midnight(&self) -> i64
pub fn from_nanos_since_midnight(nanos: i64) -> Result<Self, EncodeError>
pub fn checked_add_duration( &self, duration: &DurationValue, ) -> Result<Self, EncodeError>
pub fn checked_sub_duration( &self, duration: &DurationValue, ) -> Result<Self, EncodeError>
Trait Implementations§
Source§impl Clone for LocalTimeValue
impl Clone for LocalTimeValue
Source§fn clone(&self) -> LocalTimeValue
fn clone(&self) -> LocalTimeValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LocalTimeValue
Source§impl Debug for LocalTimeValue
impl Debug for LocalTimeValue
Source§impl Display for LocalTimeValue
impl Display for LocalTimeValue
impl Eq for LocalTimeValue
Source§impl FromStr for LocalTimeValue
impl FromStr for LocalTimeValue
Source§impl Ord for LocalTimeValue
impl Ord for LocalTimeValue
Source§fn cmp(&self, other: &LocalTimeValue) -> Ordering
fn cmp(&self, other: &LocalTimeValue) -> Ordering
1.21.0 (const: unstable) · 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 LocalTimeValue
impl PartialEq for LocalTimeValue
Source§fn eq(&self, other: &LocalTimeValue) -> bool
fn eq(&self, other: &LocalTimeValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for LocalTimeValue
impl PartialOrd for LocalTimeValue
impl StructuralPartialEq for LocalTimeValue
Auto Trait Implementations§
impl Freeze for LocalTimeValue
impl RefUnwindSafe for LocalTimeValue
impl Send for LocalTimeValue
impl Sync for LocalTimeValue
impl Unpin for LocalTimeValue
impl UnsafeUnpin for LocalTimeValue
impl UnwindSafe for LocalTimeValue
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