Enum dicom_core::value::partial::DateComponent
source · [−]pub enum DateComponent {
Year,
Month,
Day,
Hour,
Minute,
Second,
Millisecond,
Fraction,
UtcWest,
UtcEast,
}Expand description
Represents components of Date, Time and DateTime values.
Variants
Year
Month
Day
Hour
Minute
Second
Millisecond
Fraction
UtcWest
UtcEast
Trait Implementations
sourceimpl Clone for DateComponent
impl Clone for DateComponent
sourcefn clone(&self) -> DateComponent
fn clone(&self) -> DateComponent
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for DateComponent
impl Debug for DateComponent
sourceimpl Hash for DateComponent
impl Hash for DateComponent
sourceimpl Ord for DateComponent
impl Ord for DateComponent
sourcefn cmp(&self, other: &DateComponent) -> Ordering
fn cmp(&self, other: &DateComponent) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<DateComponent> for DateComponent
impl PartialEq<DateComponent> for DateComponent
sourcefn eq(&self, other: &DateComponent) -> bool
fn eq(&self, other: &DateComponent) -> bool
sourceimpl PartialOrd<DateComponent> for DateComponent
impl PartialOrd<DateComponent> for DateComponent
sourcefn partial_cmp(&self, other: &DateComponent) -> Option<Ordering>
fn partial_cmp(&self, other: &DateComponent) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for DateComponent
impl Eq for DateComponent
impl StructuralEq for DateComponent
impl StructuralPartialEq for DateComponent
Auto Trait Implementations
impl RefUnwindSafe for DateComponent
impl Send for DateComponent
impl Sync for DateComponent
impl Unpin for DateComponent
impl UnwindSafe for DateComponent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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