Enum dae_parser::MaybeDateTime
source · [−]pub enum MaybeDateTime {
Ok(DateTime<FixedOffset>),
Error(String),
}
Expand description
Collada spec says that created
and modified
times should follow ISO 8601,
but chrono
asserts that this means that timezones are required and Blender
doesn’t seem to add them. To avoid crashing, we store the unparsed date as a string.
Variants
Ok(DateTime<FixedOffset>)
A proper ISO 8601 date-time.
Error(String)
A date-time that failed to parse.
Trait Implementations
sourceimpl Clone for MaybeDateTime
impl Clone for MaybeDateTime
sourcefn clone(&self) -> MaybeDateTime
fn clone(&self) -> MaybeDateTime
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MaybeDateTime
impl Debug for MaybeDateTime
sourceimpl Display for MaybeDateTime
impl Display for MaybeDateTime
sourceimpl From<DateTime<FixedOffset>> for MaybeDateTime
impl From<DateTime<FixedOffset>> for MaybeDateTime
sourcefn from(v: DateTime<FixedOffset>) -> Self
fn from(v: DateTime<FixedOffset>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for MaybeDateTime
impl Send for MaybeDateTime
impl Sync for MaybeDateTime
impl Unpin for MaybeDateTime
impl UnwindSafe for MaybeDateTime
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more