#[non_exhaustive]pub struct DateTimeRange<D = NaiveDateTime> {
pub range: Range<D>,
pub kind: RuleKind,
pub comments: UniqueSortedVec<Arc<str>>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.range: Range<D>
§kind: RuleKind
§comments: UniqueSortedVec<Arc<str>>
Trait Implementations§
Source§impl<D: Clone> Clone for DateTimeRange<D>
impl<D: Clone> Clone for DateTimeRange<D>
Source§fn clone(&self) -> DateTimeRange<D>
fn clone(&self) -> DateTimeRange<D>
Returns a duplicate 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<D: Debug> Debug for DateTimeRange<D>
impl<D: Debug> Debug for DateTimeRange<D>
Source§impl<D: PartialEq> PartialEq for DateTimeRange<D>
impl<D: PartialEq> PartialEq for DateTimeRange<D>
impl<D: Eq> Eq for DateTimeRange<D>
impl<D> StructuralPartialEq for DateTimeRange<D>
Auto Trait Implementations§
impl<D> Freeze for DateTimeRange<D>where
D: Freeze,
impl<D> RefUnwindSafe for DateTimeRange<D>where
D: RefUnwindSafe,
impl<D> Send for DateTimeRange<D>where
D: Send,
impl<D> Sync for DateTimeRange<D>where
D: Sync,
impl<D> Unpin for DateTimeRange<D>where
D: Unpin,
impl<D> UnwindSafe for DateTimeRange<D>where
D: UnwindSafe,
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