#[non_exhaustive]pub struct DateTimeRange<D = NaiveDateTime> {
pub range: Range<D>,
pub kind: RuleKind,
pub comment: 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§comment: Arc<str>Implementations§
Source§impl<D> DateTimeRange<D>
impl<D> DateTimeRange<D>
Sourcepub fn into_state(self) -> (RuleKind, Arc<str>)
pub fn into_state(self) -> (RuleKind, Arc<str>)
Extract the kind and comment from the range, which are the values that define current state of an expression.
Trait Implementations§
Source§impl<D: Clone> Clone for DateTimeRange<D>
impl<D: Clone> Clone for DateTimeRange<D>
Source§impl<D: Debug> Debug for DateTimeRange<D>
impl<D: Debug> Debug for DateTimeRange<D>
impl<D: Eq> Eq for DateTimeRange<D>
Source§impl<D: PartialEq> PartialEq for DateTimeRange<D>
impl<D: PartialEq> PartialEq for DateTimeRange<D>
impl<D: PartialEq> StructuralPartialEq for DateTimeRange<D>
Auto Trait Implementations§
impl<D> Freeze for DateTimeRange<D>
impl<D> RefUnwindSafe for DateTimeRange<D>where
Range<D>: RefUnwindSafe,
impl<D> Send for DateTimeRange<D>
impl<D> Sync for DateTimeRange<D>
impl<D> Unpin for DateTimeRange<D>
impl<D> UnsafeUnpin for DateTimeRange<D>where
Range<D>: UnsafeUnpin,
impl<D> UnwindSafe for DateTimeRange<D>where
Range<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