Enum marlowe_lang::parsing::Rule
source · pub enum Rule {
Show 88 variants
EOI,
WHITESPACE,
comma,
lpar,
rpar,
lbra,
rbra,
Number,
quoted_string,
string,
str_char,
Timeout,
TimeConstant,
TimeInterval,
TimeParam,
Token,
ADA,
Currency,
ChoiceId,
Value,
TimeIntervalStart,
TimeIntervalEnd,
Cond,
ChoiceValue,
MulValue,
DivValue,
SubValue,
AddValue,
NegValue,
UseValue,
Constant,
ConstantParam,
AvailableMoney,
Observation,
ValueEQ,
ValueLE,
ValueLT,
ValueGT,
ValueGE,
TrueObs,
FalseObs,
ChoseSomething,
NotObs,
OrObs,
AndObs,
Action,
Deposit,
Choice,
Notify,
PossiblyMerkleizedContract,
NonMerkleizedContract,
MerkleizedContract,
Case,
Bound,
Payee,
PayeeAccount,
PayeeParty,
Party,
FromParty,
Role,
Address,
Account,
MainContract,
ValueId,
Contract,
When,
Pay,
If,
Let,
Assert,
Close,
WrappedContract,
ArrayOfCases,
ArrayOfBounds,
Hole,
PartyHole,
FromPartyHole,
ContractHole,
PayeeHole,
ValueHole,
ObservationHole,
TimeoutHole,
TokenHole,
BoundHole,
RoleHole,
CaseHole,
ActionHole,
AccountHole,
}
Expand description
Variants§
EOI
WHITESPACE
comma
lpar
rpar
lbra
rbra
Number
quoted_string
string
str_char
Timeout
TimeConstant
TimeInterval
TimeParam
Token
ADA
Currency
ChoiceId
Value
TimeIntervalStart
TimeIntervalEnd
Cond
ChoiceValue
MulValue
DivValue
SubValue
AddValue
NegValue
UseValue
Constant
ConstantParam
AvailableMoney
Observation
ValueEQ
ValueLE
ValueLT
ValueGT
ValueGE
TrueObs
FalseObs
ChoseSomething
NotObs
OrObs
AndObs
Action
Deposit
Choice
Notify
PossiblyMerkleizedContract
NonMerkleizedContract
MerkleizedContract
Case
Bound
Payee
PayeeAccount
PayeeParty
Party
FromParty
Role
Address
Account
MainContract
ValueId
Contract
When
Pay
If
Let
Assert
Close
WrappedContract
ArrayOfCases
ArrayOfBounds
Hole
PartyHole
FromPartyHole
ContractHole
PayeeHole
ValueHole
ObservationHole
TimeoutHole
TokenHole
BoundHole
RoleHole
CaseHole
ActionHole
AccountHole
Trait Implementations§
source§impl Ord for Rule
impl Ord for Rule
source§impl Parser<Rule> for MarloweParser
impl Parser<Rule> for MarloweParser
source§impl PartialEq<Rule> for Rule
impl PartialEq<Rule> for Rule
source§impl PartialOrd<Rule> for Rule
impl PartialOrd<Rule> for Rule
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 Rule
impl Eq for Rule
impl StructuralEq for Rule
impl StructuralPartialEq for Rule
Auto Trait Implementations§
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnwindSafe for Rule
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
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.