#[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§fn from(subgroup: Pred) -> Constraint
fn from(subgroup: Pred) -> 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<<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.
Source§type Error = NotEnoughBytesError
type Error = NotEnoughBytesError
Source§impl PartialOrd for Pred
impl PartialOrd for Pred
impl 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
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>
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>
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