Struct ya_agreement_utils::ConstraintKey
source · pub struct ConstraintKey(_);
Implementations§
source§impl ConstraintKey
impl ConstraintKey
pub fn greater_than(self, value: ConstraintValue) -> ConstraintExpr
pub fn less_than(self, value: ConstraintValue) -> ConstraintExpr
pub fn equal_to(self, value: ConstraintValue) -> ConstraintExpr
pub fn not_equal_to(self, value: ConstraintValue) -> ConstraintExpr
Trait Implementations§
source§impl Clone for ConstraintKey
impl Clone for ConstraintKey
source§fn clone(&self) -> ConstraintKey
fn clone(&self) -> ConstraintKey
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 From<ConstraintKey> for ConstraintExpr
impl From<ConstraintKey> for ConstraintExpr
source§fn from(key: ConstraintKey) -> Self
fn from(key: ConstraintKey) -> Self
Converts to this type from the input type.
source§impl PartialEq<ConstraintKey> for ConstraintKey
impl PartialEq<ConstraintKey> for ConstraintKey
source§fn eq(&self, other: &ConstraintKey) -> bool
fn eq(&self, other: &ConstraintKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ConstraintKey
impl StructuralEq for ConstraintKey
impl StructuralPartialEq for ConstraintKey
Auto Trait Implementations§
impl RefUnwindSafe for ConstraintKey
impl Send for ConstraintKey
impl Sync for ConstraintKey
impl Unpin for ConstraintKey
impl UnwindSafe for ConstraintKey
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.