Enum aravis::RangeCheckPolicy
source · #[non_exhaustive]pub enum RangeCheckPolicy {
Disable,
Enable,
Debug,
}
Available on crate feature
v0_8_6
only.Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Disable
never check if float or integer node value is in min/max range
Enable
always check if if float or integer node is in min/max range
Debug
check the value, but only display an error message if the value is not allowed (Since 0.8.8)
Trait Implementations§
source§impl Clone for RangeCheckPolicy
impl Clone for RangeCheckPolicy
source§fn clone(&self) -> RangeCheckPolicy
fn clone(&self) -> RangeCheckPolicy
Returns a copy of the value. Read more
1.0.0 · 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 RangeCheckPolicy
impl Debug for RangeCheckPolicy
source§impl Display for RangeCheckPolicy
impl Display for RangeCheckPolicy
source§impl<'a> FromValue<'a> for RangeCheckPolicy
impl<'a> FromValue<'a> for RangeCheckPolicy
§type Checker = GenericValueTypeChecker<RangeCheckPolicy>
type Checker = GenericValueTypeChecker<RangeCheckPolicy>
Value type checker.
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moresource§impl Hash for RangeCheckPolicy
impl Hash for RangeCheckPolicy
source§impl Ord for RangeCheckPolicy
impl Ord for RangeCheckPolicy
source§fn cmp(&self, other: &RangeCheckPolicy) -> Ordering
fn cmp(&self, other: &RangeCheckPolicy) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<RangeCheckPolicy> for RangeCheckPolicy
impl PartialEq<RangeCheckPolicy> for RangeCheckPolicy
source§fn eq(&self, other: &RangeCheckPolicy) -> bool
fn eq(&self, other: &RangeCheckPolicy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<RangeCheckPolicy> for RangeCheckPolicy
impl PartialOrd<RangeCheckPolicy> for RangeCheckPolicy
source§fn partial_cmp(&self, other: &RangeCheckPolicy) -> Option<Ordering>
fn partial_cmp(&self, other: &RangeCheckPolicy) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl StaticType for RangeCheckPolicy
impl StaticType for RangeCheckPolicy
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl ToValue for RangeCheckPolicy
impl ToValue for RangeCheckPolicy
source§impl ValueType for RangeCheckPolicy
impl ValueType for RangeCheckPolicy
§type Type = RangeCheckPolicy
type Type = RangeCheckPolicy
Type to get the
Type
from. Read moreimpl Copy for RangeCheckPolicy
impl Eq for RangeCheckPolicy
impl StructuralEq for RangeCheckPolicy
impl StructuralPartialEq for RangeCheckPolicy
Auto Trait Implementations§
impl RefUnwindSafe for RangeCheckPolicy
impl Send for RangeCheckPolicy
impl Sync for RangeCheckPolicy
impl Unpin for RangeCheckPolicy
impl UnwindSafe for RangeCheckPolicy
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<T> Pointable for T
impl<T> Pointable for T
source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
source§impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere T: Send + ToValue + ?Sized,
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.