pub struct ChoiceDecl {
pub name: String,
pub consuming: Consuming,
pub return_ty: Option<Type>,
pub params: Vec<FieldDecl>,
pub controllers: Vec<Expr>,
pub observers: Vec<Expr>,
pub body: Option<Expr>,
pub pos: Pos,
pub span: Span,
}Fields§
§name: String§consuming: Consuming§return_ty: Option<Type>Structured return type. None if it could not be parsed cleanly or the
choice declared no return type.
params: Vec<FieldDecl>§controllers: Vec<Expr>Comma-separated controller expressions.
observers: Vec<Expr>Choice observers, if any.
body: Option<Expr>§pos: Pos§span: SpanTrait Implementations§
Source§impl Clone for ChoiceDecl
impl Clone for ChoiceDecl
Source§fn clone(&self) -> ChoiceDecl
fn clone(&self) -> ChoiceDecl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ChoiceDecl
impl RefUnwindSafe for ChoiceDecl
impl Send for ChoiceDecl
impl Sync for ChoiceDecl
impl Unpin for ChoiceDecl
impl UnsafeUnpin for ChoiceDecl
impl UnwindSafe for ChoiceDecl
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