#[repr(u8)]pub enum Pred {
Eq = 16,
EqRange = 17,
Gt = 18,
Lt = 19,
Gte = 20,
Lte = 21,
And = 22,
Or = 23,
Not = 24,
EqSet = 25,
BitAnd = 26,
BitOr = 27,
}
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.
EqSet = 25
0x19
Opcode associated with the Pred::EqSet operation.
BitAnd = 26
0x1A
Opcode associated with the Pred::BitAnd operation.
BitOr = 27
0x1B
Opcode associated with the Pred::BitOr operation.
Trait Implementations§
Source§impl From<Pred> for Constraint
impl From<Pred> for Constraint
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<Self::Op, Self::Error>
fn parse_op( &self, bytes: &mut impl Iterator<Item = u8>, ) -> Result<Self::Op, Self::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.