pub enum ResultFilter {
Failed,
Passed,
AboveLimit,
BelowLimit,
}Expand description
Which result values the item search looks for (latest revision of a simulation): within or outside their limits.
Variants§
Failed
At least one value outside its limits.
Passed
At least one value with limits, and within them.
AboveLimit
At least one value above its upper limit.
BelowLimit
At least one value below its lower limit.
Implementations§
Source§impl ResultFilter
impl ResultFilter
pub const ALL: [ResultFilter; 4]
pub fn as_str(self) -> &'static str
pub fn label(self) -> &'static str
pub fn parse(s: &str) -> Option<ResultFilter>
Sourcepub fn parse_field(s: Option<&str>) -> Result<Option<ResultFilter>, AppError>
pub fn parse_field(s: Option<&str>) -> Result<Option<ResultFilter>, AppError>
Parses an optional request field: empty = no filter, unknown = 400.
Trait Implementations§
Source§impl Clone for ResultFilter
impl Clone for ResultFilter
impl Copy for ResultFilter
Source§impl Debug for ResultFilter
impl Debug for ResultFilter
impl Eq for ResultFilter
Source§impl PartialEq for ResultFilter
impl PartialEq for ResultFilter
impl StructuralPartialEq for ResultFilter
Auto Trait Implementations§
impl Freeze for ResultFilter
impl RefUnwindSafe for ResultFilter
impl Send for ResultFilter
impl Sync for ResultFilter
impl Unpin for ResultFilter
impl UnsafeUnpin for ResultFilter
impl UnwindSafe for ResultFilter
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
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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 moreimpl<T> Parallelizable for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.