Enum essential_constraint_vm::asm::opcode::Pred
source · #[repr(u8)]pub enum Pred {
Eq = 16,
EqRange = 17,
Gt = 18,
Lt = 19,
Gte = 20,
Lte = 21,
And = 22,
Or = 23,
Not = 24,
}
Expand description
Operations for computing predicates.
Variants§
Eq = 16
0x10
Opcode associated with the Pred::Eq operation.
EqRange = 17
0x11
Opcode associated with the Pred::EqRange operation.
Gt = 18
0x12
Opcode associated with the Pred::Gt operation.
Lt = 19
0x13
Opcode associated with the Pred::Lt operation.
Gte = 20
0x14
Opcode associated with the Pred::Gte operation.
Lte = 21
0x15
Opcode associated with the Pred::Lte operation.
And = 22
0x16
Opcode associated with the Pred::And operation.
Or = 23
0x17
Opcode associated with the Pred::Or operation.
Not = 24
0x18
Opcode associated with the Pred::Not operation.
Trait Implementations§
source§impl From<Pred> for Constraint
impl From<Pred> for Constraint
source§fn from(subgroup: Pred) -> Constraint
fn from(subgroup: Pred) -> Constraint
Converts to this type from the input type.
source§impl Ord for Pred
impl Ord for Pred
source§impl ParseOp for Pred
impl ParseOp for Pred
source§fn parse_op(
&self,
bytes: &mut impl Iterator<Item = u8>,
) -> Result<<Pred as ParseOp>::Op, <Pred as ParseOp>::Error>
fn parse_op( &self, bytes: &mut impl Iterator<Item = u8>, ) -> Result<<Pred as ParseOp>::Op, <Pred as ParseOp>::Error>
Attempt to parse the operation associated with the opcode from the given bytes.
Only consumes the bytes necessary to construct any associated data.
Returns an error in the case that the given bytes
iterator
contains insufficient bytes to parse the op.
§type Error = NotEnoughBytesError
type Error = NotEnoughBytesError
Any error that might occur while parsing.
source§impl PartialEq for Pred
impl PartialEq for Pred
source§impl PartialOrd for Pred
impl PartialOrd for Pred
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 Pred
impl Eq for Pred
impl StructuralPartialEq for Pred
Auto Trait Implementations§
impl Freeze for Pred
impl RefUnwindSafe for Pred
impl Send for Pred
impl Sync for Pred
impl Unpin for Pred
impl UnwindSafe for Pred
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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