pub enum AssertionValue {
}Expand description
Type-safe wrapper for assertion values supporting PartialEq comparison
Variants§
String(String)
Bool(bool)
U8(u8)
U32(u32)
U64(u64)
I32(i32)
I64(i64)
F64(f64)
MessagePriority(MessagePriority)
Version(Version)
Some(Box<AssertionValue>)
IsNone
IsSome
RatioActual(u64, u64)
RatioLimit(u64, u64)
TransitStatus(TransitStatus)
Trait Implementations§
Source§impl Clone for AssertionValue
impl Clone for AssertionValue
Source§fn clone(&self) -> AssertionValue
fn clone(&self) -> AssertionValue
Returns a duplicate 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 AssertionValue
impl Debug for AssertionValue
Source§impl From<&str> for AssertionValue
impl From<&str> for AssertionValue
Source§impl From<IsNone> for AssertionValue
impl From<IsNone> for AssertionValue
Source§impl From<IsSome> for AssertionValue
impl From<IsSome> for AssertionValue
Source§impl From<MessagePriority> for AssertionValue
impl From<MessagePriority> for AssertionValue
Source§fn from(p: MessagePriority) -> Self
fn from(p: MessagePriority) -> Self
Converts to this type from the input type.
Source§impl<T> From<Option<T>> for AssertionValuewhere
T: Into<AssertionValue>,
impl<T> From<Option<T>> for AssertionValuewhere
T: Into<AssertionValue>,
Source§impl From<Presence> for AssertionValue
impl From<Presence> for AssertionValue
Source§impl From<RatioLimit> for AssertionValue
impl From<RatioLimit> for AssertionValue
Source§fn from(limit: RatioLimit) -> Self
fn from(limit: RatioLimit) -> Self
Converts to this type from the input type.
Source§impl From<String> for AssertionValue
impl From<String> for AssertionValue
Source§impl From<TransitStatus> for AssertionValue
Available on crate feature policy only.
impl From<TransitStatus> for AssertionValue
Available on crate feature
policy only.Source§fn from(status: TransitStatus) -> Self
fn from(status: TransitStatus) -> Self
Converts to this type from the input type.
Source§impl From<Version> for AssertionValue
impl From<Version> for AssertionValue
Source§impl From<bool> for AssertionValue
impl From<bool> for AssertionValue
Source§impl From<i32> for AssertionValue
impl From<i32> for AssertionValue
Source§impl From<i64> for AssertionValue
impl From<i64> for AssertionValue
Source§impl From<u32> for AssertionValue
impl From<u32> for AssertionValue
Source§impl From<u64> for AssertionValue
impl From<u64> for AssertionValue
Source§impl From<u8> for AssertionValue
impl From<u8> for AssertionValue
Source§impl PartialEq for AssertionValue
impl PartialEq for AssertionValue
Auto Trait Implementations§
impl Freeze for AssertionValue
impl RefUnwindSafe for AssertionValue
impl Send for AssertionValue
impl Sync for AssertionValue
impl Unpin for AssertionValue
impl UnsafeUnpin for AssertionValue
impl UnwindSafe for AssertionValue
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
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