pub enum TimelineRange<E> {
DateTime {
since_date: Option<DateTime<Utc>>,
until_date: Option<DateTime<Utc>>,
},
Id {
since_id: Option<Id<E>>,
until_id: Option<Id<E>>,
},
Unbounded,
}Expand description
Range in the timeline.
Variants§
DateTime
Range in the timeline bounded by time.
Fields
Id
Range in the timeline bounded by note IDs.
Fields
Unbounded
Unbounded range.
Implementations§
Source§impl<E> TimelineRange<E>
impl<E> TimelineRange<E>
Sourcepub fn until(cursor: TimelineCursor<E>) -> Self
pub fn until(cursor: TimelineCursor<E>) -> Self
Returns TimelineRange for the range to a specified point on the timeline.
Sourcepub fn since(cursor: TimelineCursor<E>) -> Self
pub fn since(cursor: TimelineCursor<E>) -> Self
Returns TimelineRange for the range from a specified point on the timeline.
Trait Implementations§
Source§impl<E> Clone for TimelineRange<E>
impl<E> Clone for TimelineRange<E>
Source§impl<E> Debug for TimelineRange<E>
impl<E> Debug for TimelineRange<E>
Source§impl<E> PartialEq for TimelineRange<E>
impl<E> PartialEq for TimelineRange<E>
impl<E> Copy for TimelineRange<E>
impl<E> Eq for TimelineRange<E>
Auto Trait Implementations§
impl<E> Freeze for TimelineRange<E>
impl<E> RefUnwindSafe for TimelineRange<E>
impl<E> Send for TimelineRange<E>
impl<E> Sync for TimelineRange<E>
impl<E> Unpin for TimelineRange<E>
impl<E> UnwindSafe for TimelineRange<E>
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