Enum inkwell::IntPredicate
source · pub enum IntPredicate {
EQ,
NE,
UGT,
UGE,
ULT,
ULE,
SGT,
SGE,
SLT,
SLE,
}
Expand description
This enum defines how to compare a left
and right
IntValue
.
Variants§
EQ
Equal
NE
Not Equal
UGT
Unsigned Greater Than
UGE
Unsigned Greater Than or Equal
ULT
Unsigned Less Than
ULE
Unsigned Less Than or Equal
SGT
Signed Greater Than
SGE
Signed Greater Than or Equal
SLT
Signed Less Than
SLE
Signed Less Than or Equal
Trait Implementations§
source§impl Clone for IntPredicate
impl Clone for IntPredicate
source§fn clone(&self) -> IntPredicate
fn clone(&self) -> IntPredicate
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 IntPredicate
impl Debug for IntPredicate
source§impl From<LLVMIntPredicate> for IntPredicate
impl From<LLVMIntPredicate> for IntPredicate
source§fn from(src: LLVMIntPredicate) -> Self
fn from(src: LLVMIntPredicate) -> Self
Converts to this type from the input type.
source§impl Hash for IntPredicate
impl Hash for IntPredicate
source§impl Into<LLVMIntPredicate> for IntPredicate
impl Into<LLVMIntPredicate> for IntPredicate
source§fn into(self) -> LLVMIntPredicate
fn into(self) -> LLVMIntPredicate
Converts this type into the (usually inferred) input type.
source§impl Ord for IntPredicate
impl Ord for IntPredicate
source§fn cmp(&self, other: &IntPredicate) -> Ordering
fn cmp(&self, other: &IntPredicate) -> 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 for IntPredicate
impl PartialEq for IntPredicate
source§fn eq(&self, other: &IntPredicate) -> bool
fn eq(&self, other: &IntPredicate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for IntPredicate
impl PartialOrd for IntPredicate
source§fn partial_cmp(&self, other: &IntPredicate) -> Option<Ordering>
fn partial_cmp(&self, other: &IntPredicate) -> 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 moreimpl Copy for IntPredicate
impl Eq for IntPredicate
impl StructuralPartialEq for IntPredicate
Auto Trait Implementations§
impl Freeze for IntPredicate
impl RefUnwindSafe for IntPredicate
impl Send for IntPredicate
impl Sync for IntPredicate
impl Unpin for IntPredicate
impl UnwindSafe for IntPredicate
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> 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