pub enum Rule {
Show 184 variants
EOI,
WHITESPACE,
COMMENT,
choreography,
top_level_decl,
module_decl,
import_decl,
expose_list,
protocol_decl,
where_block,
locals_block,
local_protocol_decl,
proof_bundle_decl,
proof_bundle_meta,
proof_bundle_version,
proof_bundle_issuer,
proof_bundle_constraint,
proof_bundle_requires,
capability_list,
protocol_requires,
protocol_uses,
protocol_profiles,
profile_decl,
profile_meta,
profile_fairness,
profile_admissibility,
profile_escalation_window,
agreement_profile_decl,
agreement_profile_body,
agreement_profile_meta,
agreement_profile_visibility,
agreement_profile_rule,
agreement_profile_usable_at,
agreement_profile_finalized_at,
agreement_profile_evidence,
type_decl,
type_alias_decl,
union_type_decl,
union_ctor_block,
union_ctor_decl,
ctor_type_payload,
effect_decl,
effect_body,
effect_op_decl,
effect_op_head,
effect_op_authority_class,
effect_op_meta_body,
effect_op_meta,
effect_op_semantic_class,
effect_op_progress,
effect_op_region,
effect_op_agreement_use,
effect_op_reentrancy,
type_expr,
type_record,
type_result,
type_maybe,
type_unit,
role_set_decl,
role_set_expr,
role_set_members,
role_set_subset,
topology_decl,
topology_kind,
topology_members,
fragment_decl,
ident_list,
integer_list,
operation_decl,
operation_params,
operation_param_decl,
operation_within,
operation_progress,
operation_agreement,
operation_prestate,
operation_compose,
guest_runtime_decl,
guest_runtime_body,
guest_runtime_stmt,
guest_runtime_uses,
guest_runtime_entry,
header_roles,
roles_decl,
role_list,
role_decl,
role_param,
role_param_expr,
protocol_body,
block_protocol,
statement,
progress_attachment,
progress_meta,
progress_requires,
progress_within,
progress_on_timeout,
progress_on_stall,
begin_stmt,
begin_args,
await_stmt,
resolve_stmt,
resolve_outcome,
resolve_success,
resolve_failure,
resolve_timeout,
resolve_cancelled,
invalidate_stmt,
authority_let_in_stmt,
authority_let_stmt,
observe_let_in_stmt,
observe_let_stmt,
let_in_stmt,
let_stmt,
case_stmt,
case_block,
case_branch,
match_pattern,
match_pattern_payload,
timeout_stmt,
authority_expr,
check_expr,
observe_expr,
transfer_expr,
result_ctor_expr,
maybe_ctor_expr,
ctor_value_payload,
effect_call,
call_expr,
argument_list,
authority_atom,
ident_expr,
duration,
time_unit,
call_stmt,
publish_authority_stmt,
publish_stmt,
materialize_stmt,
handoff_stmt,
dependent_work_stmt,
continue_stmt,
send_stmt,
broadcast_stmt,
annotated_sender_ref,
role_metadata_record,
role_annotation_entries,
role_annotation_entry,
role_annotation_value,
role_ref,
role_index,
role_index_expr,
range_expr,
choice_stmt,
choice_head,
choice_block,
block_choice,
choice_branch,
par_stmt,
par_block,
par_branch,
guard,
predicate_guard,
evidence_guard,
guard_expr,
loop_stmt,
loop_spec,
loop_decide,
loop_repeat,
loop_while,
loop_forever,
int_expr,
rec_stmt,
block,
branch_body,
message,
message_of,
type_spec,
type_path,
type_path_segment,
type_generics,
payload,
payload_paren,
payload_brace,
ident,
integer,
string,
}Variants§
EOI
End-of-input
WHITESPACE
COMMENT
choreography
top_level_decl
module_decl
import_decl
expose_list
protocol_decl
where_block
locals_block
local_protocol_decl
proof_bundle_decl
proof_bundle_meta
proof_bundle_version
proof_bundle_issuer
proof_bundle_constraint
proof_bundle_requires
capability_list
protocol_requires
protocol_uses
protocol_profiles
profile_decl
profile_meta
profile_fairness
profile_admissibility
profile_escalation_window
agreement_profile_decl
agreement_profile_body
agreement_profile_meta
agreement_profile_visibility
agreement_profile_rule
agreement_profile_usable_at
agreement_profile_finalized_at
agreement_profile_evidence
type_decl
type_alias_decl
union_type_decl
union_ctor_block
union_ctor_decl
ctor_type_payload
effect_decl
effect_body
effect_op_decl
effect_op_head
effect_op_meta_body
effect_op_meta
effect_op_semantic_class
effect_op_progress
effect_op_region
effect_op_agreement_use
effect_op_reentrancy
type_expr
type_record
type_result
type_maybe
type_unit
role_set_decl
role_set_expr
role_set_members
role_set_subset
topology_decl
topology_kind
topology_members
fragment_decl
ident_list
integer_list
operation_decl
operation_params
operation_param_decl
operation_within
operation_progress
operation_agreement
operation_prestate
operation_compose
guest_runtime_decl
guest_runtime_body
guest_runtime_stmt
guest_runtime_uses
guest_runtime_entry
header_roles
roles_decl
role_list
role_decl
role_param
role_param_expr
protocol_body
block_protocol
statement
progress_attachment
progress_meta
progress_requires
progress_within
progress_on_timeout
progress_on_stall
begin_stmt
begin_args
await_stmt
resolve_stmt
resolve_outcome
resolve_success
resolve_failure
resolve_timeout
resolve_cancelled
invalidate_stmt
observe_let_in_stmt
observe_let_stmt
let_in_stmt
let_stmt
case_stmt
case_block
case_branch
match_pattern
match_pattern_payload
timeout_stmt
check_expr
observe_expr
transfer_expr
result_ctor_expr
maybe_ctor_expr
ctor_value_payload
effect_call
call_expr
argument_list
ident_expr
duration
time_unit
call_stmt
publish_stmt
materialize_stmt
handoff_stmt
dependent_work_stmt
continue_stmt
send_stmt
broadcast_stmt
annotated_sender_ref
role_metadata_record
role_annotation_entries
role_annotation_entry
role_annotation_value
role_ref
role_index
role_index_expr
range_expr
choice_stmt
choice_head
choice_block
block_choice
choice_branch
par_stmt
par_block
par_branch
guard
predicate_guard
evidence_guard
guard_expr
loop_stmt
loop_spec
loop_decide
loop_repeat
loop_while
loop_forever
int_expr
rec_stmt
block
branch_body
message
message_of
type_spec
type_path
type_path_segment
type_generics
payload
payload_paren
payload_brace
ident
integer
string
Implementations§
Trait Implementations§
Source§impl Ord for Rule
impl Ord for Rule
Source§impl PartialOrd for Rule
impl PartialOrd for Rule
impl Copy for Rule
impl Eq for Rule
impl StructuralPartialEq for Rule
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnsafeUnpin 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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
Source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
Source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
Source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> StrictAs for T
impl<T> StrictAs for T
Source§fn strict_as<Dst>(self) -> Dstwhere
T: StrictCast<Dst>,
fn strict_as<Dst>(self) -> Dstwhere
T: StrictCast<Dst>,
Casts the value.
Source§impl<Src, Dst> StrictCastFrom<Src> for Dstwhere
Src: StrictCast<Dst>,
impl<Src, Dst> StrictCastFrom<Src> for Dstwhere
Src: StrictCast<Dst>,
Source§fn strict_cast_from(src: Src) -> Dst
fn strict_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
Source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.