pub struct GMonthDay { /* private fields */ }
Expand description
It encodes the value using a number of seconds from the Gregorian calendar era using a Decimal
,
when combined with the year 1972 and the time 31T00:00:00, and an optional timezone offset in minutes.
Implementations§
Source§impl GMonthDay
impl GMonthDay
pub fn from_be_bytes(bytes: [u8; 18]) -> Self
pub fn month(&self) -> u8
pub fn day(&self) -> u8
pub fn timezone(&self) -> Option<DayTimeDuration>
pub fn timezone_offset(&self) -> Option<TimezoneOffset>
pub fn adjust(&self, timezone_offset: Option<TimezoneOffset>) -> Option<Self>
pub fn to_be_bytes(self) -> [u8; 18]
Sourcepub fn is_identical_with(self, other: Self) -> bool
pub fn is_identical_with(self, other: Self) -> bool
Checks if the two values are identical.
Trait Implementations§
Source§impl PartialOrd for GMonthDay
impl PartialOrd for GMonthDay
impl Copy for GMonthDay
impl Eq for GMonthDay
impl StructuralPartialEq for GMonthDay
Auto Trait Implementations§
impl Freeze for GMonthDay
impl RefUnwindSafe for GMonthDay
impl Send for GMonthDay
impl Sync for GMonthDay
impl Unpin for GMonthDay
impl UnwindSafe for GMonthDay
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