pub enum ParameterP<P>where
P: AstPayload,{
Slash,
Normal(Spanned<AssignIdentP<P>>, Option<Box<Spanned<TypeExprP<P>>>>, Option<Box<Spanned<ExprP<P>>>>),
NoArgs,
Args(Spanned<AssignIdentP<P>>, Option<Box<Spanned<TypeExprP<P>>>>),
KwArgs(Spanned<AssignIdentP<P>>, Option<Box<Spanned<TypeExprP<P>>>>),
}Variants§
Slash
/ marker.
Normal(Spanned<AssignIdentP<P>>, Option<Box<Spanned<TypeExprP<P>>>>, Option<Box<Spanned<ExprP<P>>>>)
Tuple Fields
§
0: Spanned<AssignIdentP<P>>Name.
NoArgs
* marker.
Args(Spanned<AssignIdentP<P>>, Option<Box<Spanned<TypeExprP<P>>>>)
KwArgs(Spanned<AssignIdentP<P>>, Option<Box<Spanned<TypeExprP<P>>>>)
Implementations§
Source§impl<P> ParameterP<P>where
P: AstPayload,
impl<P> ParameterP<P>where
P: AstPayload,
pub fn ident(&self) -> Option<&Spanned<AssignIdentP<P>>>
Source§impl<A> ParameterP<A>where
A: AstPayload,
impl<A> ParameterP<A>where
A: AstPayload,
pub fn into_map_payload<B>(
self,
f: &mut impl AstPayloadFunction<A, B>,
) -> ParameterP<B>where
B: AstPayload,
Source§impl<P> ParameterP<P>where
P: AstPayload,
impl<P> ParameterP<P>where
P: AstPayload,
pub fn split( &self, ) -> (Option<&Spanned<AssignIdentP<P>>>, Option<&Spanned<TypeExprP<P>>>, Option<&Spanned<ExprP<P>>>)
pub fn split_mut( &mut self, ) -> (Option<&mut Spanned<AssignIdentP<P>>>, Option<&mut Spanned<TypeExprP<P>>>, Option<&mut Spanned<ExprP<P>>>)
pub fn visit_expr<'a>(&'a self, f: impl FnMut(&'a Spanned<ExprP<P>>))
pub fn visit_expr_mut<'a>( &'a mut self, f: impl FnMut(&'a mut Spanned<ExprP<P>>), )
Trait Implementations§
Source§impl<P> Clone for ParameterP<P>where
P: Clone + AstPayload,
impl<P> Clone for ParameterP<P>where
P: Clone + AstPayload,
Source§fn clone(&self) -> ParameterP<P>
fn clone(&self) -> ParameterP<P>
Returns a duplicate 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<P> Debug for ParameterP<P>where
P: Debug + AstPayload,
impl<P> Debug for ParameterP<P>where
P: Debug + AstPayload,
Auto Trait Implementations§
impl<P> Freeze for ParameterP<P>
impl<P> RefUnwindSafe for ParameterP<P>where
<P as AstPayload>::IdentAssignPayload: RefUnwindSafe,
<P as AstPayload>::TypeExprPayload: RefUnwindSafe,
<P as AstPayload>::DefPayload: RefUnwindSafe,
<P as AstPayload>::IdentPayload: RefUnwindSafe,
impl<P> Send for ParameterP<P>where
<P as AstPayload>::IdentAssignPayload: Send,
<P as AstPayload>::TypeExprPayload: Send,
<P as AstPayload>::DefPayload: Send,
<P as AstPayload>::IdentPayload: Send,
impl<P> Sync for ParameterP<P>where
<P as AstPayload>::IdentAssignPayload: Sync,
<P as AstPayload>::TypeExprPayload: Sync,
<P as AstPayload>::DefPayload: Sync,
<P as AstPayload>::IdentPayload: Sync,
impl<P> Unpin for ParameterP<P>
impl<P> UnwindSafe for ParameterP<P>where
<P as AstPayload>::IdentAssignPayload: UnwindSafe,
<P as AstPayload>::TypeExprPayload: UnwindSafe,
<P as AstPayload>::DefPayload: UnwindSafe,
<P as AstPayload>::IdentPayload: UnwindSafe,
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