pub enum OrdFilter<Num> {
Cmp {
cmp: Cmp,
val: Num,
},
In {
lb: Num,
ub: Num,
},
}
Expand description
A filter for ordered quantities.
Variants
Cmp
Comparison with a constant.
In
Interval.
Implementations
sourceimpl<Num> OrdFilter<Num> where
Num: PartialEq + PartialOrd + Debug,
impl<Num> OrdFilter<Num> where
Num: PartialEq + PartialOrd + Debug,
sourcepub fn default_of_cmp(cmp_kind: Pred) -> Self where
Num: Default,
pub fn default_of_cmp(cmp_kind: Pred) -> Self where
Num: Default,
Generates a default filter for an ordered filter predicate.
sourcepub fn change_cmp_kind(self, kind: Pred) -> Self where
Num: Default + Clone,
pub fn change_cmp_kind(self, kind: Pred) -> Self where
Num: Default + Clone,
Changes the predicate of a an ordered filter.
This method tries to make the change natural from a user’s perspective. For instance, it keeps the value for comparison predicates.
sourceimpl OrdFilter<Lifetime>
impl OrdFilter<Lifetime>
sourcepub fn apply_at(&self, timestamp: &SinceStart, alloc_toc: &SinceStart) -> bool
pub fn apply_at(&self, timestamp: &SinceStart, alloc_toc: &SinceStart) -> bool
Applies the filter to an allocation w.r.t. a diff timestamp.
It should always be the case that alloc_toc <= timestamp
.
Trait Implementations
sourceimpl<'de, Num> Deserialize<'de> for OrdFilter<Num> where
Num: Deserialize<'de>,
impl<'de, Num> Deserialize<'de> for OrdFilter<Num> where
Num: Deserialize<'de>,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<Num> FilterExt<Num> for OrdFilter<Num> where
Num: PartialOrd + PartialEq + Display + Clone + 'static,
impl<Num> FilterExt<Num> for OrdFilter<Num> where
Num: PartialOrd + PartialEq + Display + Clone + 'static,
sourceimpl From<OrdFilter<Lifetime>> for RawSubFilter
impl From<OrdFilter<Lifetime>> for RawSubFilter
sourcefn from(filter: LifetimeFilter) -> Self
fn from(filter: LifetimeFilter) -> Self
Converts to this type from the input type.
sourceimpl From<OrdFilter<Lifetime>> for SubFilter
impl From<OrdFilter<Lifetime>> for SubFilter
sourcefn from(filter: LifetimeFilter) -> Self
fn from(filter: LifetimeFilter) -> Self
Converts to this type from the input type.
sourceimpl From<OrdFilter<u32>> for RawSubFilter
impl From<OrdFilter<u32>> for RawSubFilter
sourcefn from(filter: SizeFilter) -> Self
fn from(filter: SizeFilter) -> Self
Converts to this type from the input type.
sourceimpl From<OrdFilter<u32>> for SubFilter
impl From<OrdFilter<u32>> for SubFilter
sourcefn from(filter: SizeFilter) -> Self
fn from(filter: SizeFilter) -> Self
Converts to this type from the input type.
impl<Num: Eq> Eq for OrdFilter<Num>
impl<Num> StructuralEq for OrdFilter<Num>
impl<Num> StructuralPartialEq for OrdFilter<Num>
Auto Trait Implementations
impl<Num> RefUnwindSafe for OrdFilter<Num> where
Num: RefUnwindSafe,
impl<Num> Send for OrdFilter<Num> where
Num: Send,
impl<Num> Sync for OrdFilter<Num> where
Num: Sync,
impl<Num> Unpin for OrdFilter<Num> where
Num: Unpin,
impl<Num> UnwindSafe for OrdFilter<Num> where
Num: UnwindSafe,
Blanket Implementations
sourceimpl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: FloatComponent,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: FloatComponent,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
sourcefn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
Convert the source color to the destination color using the specified method Read more
sourcefn adapt_into(self) -> D
fn adapt_into(self) -> D
Convert the source color to the destination color using the bradford method by default Read more
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Src where
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Src where
Scheme: ApproxScheme,
type Err = NoError
type Err = NoError
The error type produced by a failed conversion.
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src where
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src where
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
impl<T> ConvUtil for T
impl<T> ConvUtil for T
fn approx_as<Dst>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, DefaultApprox>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, DefaultApprox>,
Approximate the subject to a given type with the default scheme.
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
Approximate the subject to a given type with a specific scheme.
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T, U> IntoColor<U> for T where
U: FromColor<T>,
impl<T, U> IntoColor<U> for T where
U: FromColor<T>,
sourcefn into_color(self) -> U
fn into_color(self) -> U
Convert into T with values clamped to the color defined bounds Read more
sourceimpl<T, U> IntoColorUnclamped<U> for T where
U: FromColorUnclamped<T>,
impl<T, U> IntoColorUnclamped<U> for T where
U: FromColorUnclamped<T>,
sourcefn into_color_unclamped(self) -> U
fn into_color_unclamped(self) -> U
Convert into T. The resulting color might be invalid in its color space Read more
sourceimpl<T, U> TryIntoColor<U> for T where
U: TryFromColor<T>,
impl<T, U> TryIntoColor<U> for T where
U: TryFromColor<T>,
sourcefn try_into_color(self) -> Result<U, OutOfBounds<U>>
fn try_into_color(self) -> Result<U, OutOfBounds<U>>
Convert into T, returning ok if the color is inside of its defined
range, otherwise an OutOfBounds
error is returned which contains
the unclamped color. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
impl<Src> ValueFrom<Src> for Src
impl<Src> ValueFrom<Src> for Src
type Err = NoError
type Err = NoError
The error type produced by a failed conversion.
fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
Convert the given value into an exactly equivalent representation.
impl<Src, Dst> ValueInto<Dst> for Src where
Dst: ValueFrom<Src>,
impl<Src, Dst> ValueInto<Dst> for Src where
Dst: ValueFrom<Src>,
type Err = <Dst as ValueFrom<Src>>::Err
type Err = <Dst as ValueFrom<Src>>::Err
The error type produced by a failed conversion.
fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>
fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>
Convert the subject into an exactly equivalent representation.