Enum time::parsing::combinator::rfc::iso8601::ExtendedKind
source · pub(crate) enum ExtendedKind {
Basic,
Extended,
Unknown,
}
Expand description
What kind of format is being parsed. This is used to ensure each part of the format (date, time, offset) is the same kind.
Variants§
Implementations§
source§impl ExtendedKind
impl ExtendedKind
sourcepub(crate) const fn maybe_extended(self) -> bool
pub(crate) const fn maybe_extended(self) -> bool
Is it possible that the format is extended?
sourcepub(crate) const fn is_extended(self) -> bool
pub(crate) const fn is_extended(self) -> bool
Is the format known for certain to be extended?
sourcepub(crate) fn coerce_basic(&mut self) -> Option<()>
pub(crate) fn coerce_basic(&mut self) -> Option<()>
If the kind is Unknown
, make it Basic
. Otherwise, do nothing. Returns Some
if and only
if the kind is now Basic
.
sourcepub(crate) fn coerce_extended(&mut self) -> Option<()>
pub(crate) fn coerce_extended(&mut self) -> Option<()>
If the kind is Unknown
, make it Extended
. Otherwise, do nothing. Returns Some
if and
only if the kind is now Extended
.
Trait Implementations§
source§impl Clone for ExtendedKind
impl Clone for ExtendedKind
source§fn clone(&self) -> ExtendedKind
fn clone(&self) -> ExtendedKind
Returns a copy of the value. Read more
1.0.0 · 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 ExtendedKind
impl Debug for ExtendedKind
impl Copy for ExtendedKind
Auto Trait Implementations§
impl Freeze for ExtendedKind
impl RefUnwindSafe for ExtendedKind
impl Send for ExtendedKind
impl Sync for ExtendedKind
impl Unpin for ExtendedKind
impl UnwindSafe for ExtendedKind
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