pub struct LocalDateTimeValue { /* private fields */ }Implementations§
Source§impl LocalDateTimeValue
impl LocalDateTimeValue
pub fn new( year: i32, month: u8, day: u8, hour: u8, minute: u8, second: u8, nanos: u32, ) -> Result<Self, EncodeError>
pub fn from_date_and_time( date: DateValue, time: LocalTimeValue, ) -> Result<Self, EncodeError>
pub fn date(&self) -> DateValue
pub fn time(&self) -> LocalTimeValue
pub fn as_jiff(&self) -> DateTime
pub fn local_epoch_day_and_nanos(&self) -> (i64, i64)
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 LocalDateTimeValue
impl Clone for LocalDateTimeValue
Source§fn clone(&self) -> LocalDateTimeValue
fn clone(&self) -> LocalDateTimeValue
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 moreSource§impl Debug for LocalDateTimeValue
impl Debug for LocalDateTimeValue
Source§impl Display for LocalDateTimeValue
impl Display for LocalDateTimeValue
impl Eq for LocalDateTimeValue
Source§impl FromStr for LocalDateTimeValue
impl FromStr for LocalDateTimeValue
Source§impl Ord for LocalDateTimeValue
impl Ord for LocalDateTimeValue
Source§fn cmp(&self, other: &LocalDateTimeValue) -> Ordering
fn cmp(&self, other: &LocalDateTimeValue) -> 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 LocalDateTimeValue
impl PartialEq for LocalDateTimeValue
Source§fn eq(&self, other: &LocalDateTimeValue) -> bool
fn eq(&self, other: &LocalDateTimeValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for LocalDateTimeValue
impl PartialOrd for LocalDateTimeValue
impl StructuralPartialEq for LocalDateTimeValue
Auto Trait Implementations§
impl Freeze for LocalDateTimeValue
impl RefUnwindSafe for LocalDateTimeValue
impl Send for LocalDateTimeValue
impl Sync for LocalDateTimeValue
impl Unpin for LocalDateTimeValue
impl UnsafeUnpin for LocalDateTimeValue
impl UnwindSafe for LocalDateTimeValue
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