Struct libimagtimetrack::iter::filter::HasEndTimeWhere
source · pub struct HasEndTimeWhere<F>(_)
where
F: Fn(&NaiveDateTime) -> bool;
Implementations
sourceimpl<F: Fn(&NaiveDateTime) -> bool> HasEndTimeWhere<F>
impl<F: Fn(&NaiveDateTime) -> bool> HasEndTimeWhere<F>
pub fn new(f: F) -> HasEndTimeWhere<F>
Trait Implementations
sourceimpl<'a, F> Filter<FileLockEntry<'a>> for HasEndTimeWhere<F>where
F: Fn(&NaiveDateTime) -> bool,
impl<'a, F> Filter<FileLockEntry<'a>> for HasEndTimeWhere<F>where
F: Fn(&NaiveDateTime) -> bool,
sourcefn filter(&self, entry: &FileLockEntry<'_>) -> bool
fn filter(&self, entry: &FileLockEntry<'_>) -> bool
The function which is used to filter something
sourcefn or<F>(self, other: F) -> Or<Self, <F as IntoFilter<N>>::IntoFilt>where
Self: Sized,
F: IntoFilter<N>,
fn or<F>(self, other: F) -> Or<Self, <F as IntoFilter<N>>::IntoFilt>where
Self: Sized,
F: IntoFilter<N>,
Helper to connect two filters via logical OR Read more
sourcefn or_not<F>(self, other: F) -> Or<Self, Not<<F as IntoFilter<N>>::IntoFilt>>where
Self: Sized,
F: IntoFilter<N>,
fn or_not<F>(self, other: F) -> Or<Self, Not<<F as IntoFilter<N>>::IntoFilt>>where
Self: Sized,
F: IntoFilter<N>,
Helper to connect two filters via logical OR and NOT Read more
sourcefn or3<F, F2>(
self,
other: F,
other2: F2
) -> Or<Self, Or<<F as IntoFilter<N>>::IntoFilt, <F2 as IntoFilter<N>>::IntoFilt>>where
Self: Sized,
F: IntoFilter<N>,
F2: IntoFilter<N>,
fn or3<F, F2>(
self,
other: F,
other2: F2
) -> Or<Self, Or<<F as IntoFilter<N>>::IntoFilt, <F2 as IntoFilter<N>>::IntoFilt>>where
Self: Sized,
F: IntoFilter<N>,
F2: IntoFilter<N>,
Helper to connect three filters via logical OR Read more
sourcefn nor<F>(self, other: F) -> Not<Or<Self, F>>where
Self: Sized,
fn nor<F>(self, other: F) -> Not<Or<Self, F>>where
Self: Sized,
Helper to connect two filters via logical NOR Read more
sourcefn xor<F>(self, other: F) -> XOr<Self, F>where
Self: Sized,
fn xor<F>(self, other: F) -> XOr<Self, F>where
Self: Sized,
Helper to connect two filters via logical XOR Read more
sourcefn and<F>(self, other: F) -> And<Self, <F as IntoFilter<N>>::IntoFilt>where
Self: Sized,
F: IntoFilter<N>,
fn and<F>(self, other: F) -> And<Self, <F as IntoFilter<N>>::IntoFilt>where
Self: Sized,
F: IntoFilter<N>,
Helper to connect two filters via logical AND Read more
sourcefn and3<F, F2>(
self,
other: F,
other2: F2
) -> And<Self, And<<F as IntoFilter<N>>::IntoFilt, <F2 as IntoFilter<N>>::IntoFilt>>where
Self: Sized,
F: IntoFilter<N>,
F2: IntoFilter<N>,
fn and3<F, F2>(
self,
other: F,
other2: F2
) -> And<Self, And<<F as IntoFilter<N>>::IntoFilt, <F2 as IntoFilter<N>>::IntoFilt>>where
Self: Sized,
F: IntoFilter<N>,
F2: IntoFilter<N>,
Helper to connect three filters via logical AND Read more
sourcefn and_not<F>(self, other: F) -> And<Self, Not<<F as IntoFilter<N>>::IntoFilt>>where
Self: Sized,
F: IntoFilter<N>,
fn and_not<F>(self, other: F) -> And<Self, Not<<F as IntoFilter<N>>::IntoFilt>>where
Self: Sized,
F: IntoFilter<N>,
Helper to connect two filters via logical AND and NOT Read more
sourcefn nand<F>(self, other: F) -> Not<And<Self, F>>where
Self: Sized,
fn nand<F>(self, other: F) -> Not<And<Self, F>>where
Self: Sized,
Helper to connect two filters via logical NAND Read more
sourcefn map_input<O, B, T, M>(self, map: M) -> MapInput<Self, M, O, B>where
Self: Sized,
M: Fn(&T) -> N,
B: Borrow<O>,
fn map_input<O, B, T, M>(self, map: M) -> MapInput<Self, M, O, B>where
Self: Sized,
M: Fn(&T) -> N,
B: Borrow<O>,
Helper to transform the input of a filter Read more
sourcefn into_failable(self) -> IntoFailable<Self>where
Self: Sized,
fn into_failable(self) -> IntoFailable<Self>where
Self: Sized,
Helper to transform a filter into a FailableFilter Read more
sourcefn as_failable<'a>(&'a self) -> AsFailable<'a, Self>where
Self: 'a,
fn as_failable<'a>(&'a self) -> AsFailable<'a, Self>where
Self: 'a,
Helper to borrow a filter as a FailbleFilter Read more
Auto Trait Implementations
impl<F> RefUnwindSafe for HasEndTimeWhere<F>where
F: RefUnwindSafe,
impl<F> Send for HasEndTimeWhere<F>where
F: Send,
impl<F> Sync for HasEndTimeWhere<F>where
F: Sync,
impl<F> Unpin for HasEndTimeWhere<F>where
F: Unpin,
impl<F> UnwindSafe for HasEndTimeWhere<F>where
F: UnwindSafe,
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