pub struct DateFilter {
pub presets: HashSet<DatePreset>,
pub range: Option<(u64, u64)>,
pub months: HashSet<(i32, u32)>,
pub clock: Option<Clock>,
}Expand description
One date rule of the filter panel (Date Imported, Date Modified).
Presets and the range are OR-ed with each other; the month list is a separate rule that must also pass.
Fields§
§presets: HashSet<DatePreset>§range: Option<(u64, u64)>Days picked in the calendar: the local midnights starting the first and the last day. The last day is included whole (Eagle adds 24 h).
months: HashSet<(i32, u32)>Calendar months in local time, (year, month 1..=12).
clock: Option<Clock>The clock the presets compare with; None reads the system clock.
Implementations§
Trait Implementations§
Source§impl Clone for DateFilter
impl Clone for DateFilter
Source§fn clone(&self) -> DateFilter
fn clone(&self) -> DateFilter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DateFilter
impl Debug for DateFilter
Source§impl Default for DateFilter
impl Default for DateFilter
Source§fn default() -> DateFilter
fn default() -> DateFilter
Returns the “default value” for a type. Read more
Source§impl PartialEq for DateFilter
impl PartialEq for DateFilter
impl StructuralPartialEq for DateFilter
Auto Trait Implementations§
impl Freeze for DateFilter
impl RefUnwindSafe for DateFilter
impl Send for DateFilter
impl Sync for DateFilter
impl Unpin for DateFilter
impl UnsafeUnpin for DateFilter
impl UnwindSafe for DateFilter
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().