Enum valkyrie_ast::ParameterTerm
source · pub enum ParameterTerm {
LMark,
RMark,
Single {
annotations: AnnotationNode,
key: IdentifierNode,
bound: Option<ExpressionKind>,
default: Option<ExpressionKind>,
},
UnpackList {
modifiers: ModifierList,
key: IdentifierNode,
bound: Option<ExpressionKind>,
},
UnpackDict {
modifiers: ModifierList,
key: IdentifierNode,
bound: Option<ExpressionKind>,
},
}Expand description
T: Type = type_expression
Variants§
LMark
<
The type on the left cannot be called by name, but the type on the right can be called by name.
RMark
>
The type on the left can be called by name, and the type on the right must be called by name.
Single
Fields
§
annotations: AnnotationNodeThe modifiers apply on the parameter
§
key: IdentifierNodeThe name
§
bound: Option<ExpressionKind>The type boundary of the parameter
§
default: Option<ExpressionKind>The default value of the parameter
#annotation modifier a: Type = default
UnpackList
Fields
§
modifiers: ModifierListThe modifiers apply on the parameter
§
key: IdentifierNodeThe list receiver name
§
bound: Option<ExpressionKind>The type boundary of the parameter
#annotation modifier ..list: Type
UnpackDict
Fields
§
modifiers: ModifierListThe modifiers apply on the parameter
§
key: IdentifierNodeThe dict receiver name
§
bound: Option<ExpressionKind>The type boundary of the parameter
#annotation modifier ...dict: Type
Trait Implementations§
source§impl Clone for ParameterTerm
impl Clone for ParameterTerm
source§fn clone(&self) -> ParameterTerm
fn clone(&self) -> ParameterTerm
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ParameterTerm
impl Debug for ParameterTerm
source§impl Hash for ParameterTerm
impl Hash for ParameterTerm
source§impl PartialEq for ParameterTerm
impl PartialEq for ParameterTerm
source§fn eq(&self, other: &ParameterTerm) -> bool
fn eq(&self, other: &ParameterTerm) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for ParameterTerm
impl StructuralPartialEq for ParameterTerm
Auto Trait Implementations§
impl RefUnwindSafe for ParameterTerm
impl Send for ParameterTerm
impl Sync for ParameterTerm
impl Unpin for ParameterTerm
impl UnwindSafe for ParameterTerm
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