pub struct Parameter<V> {
pub visibility: V,
pub name: WithComment<VariableField>,
pub type_annotation: Option<TypeAnnotation>,
pub additionally: Option<ParameterData>,
pub position: Span,
}
Fields§
§visibility: V
§name: WithComment<VariableField>
§type_annotation: Option<TypeAnnotation>
§additionally: Option<ParameterData>
§position: Span
Trait Implementations§
Source§impl<V> SelfRustTokenize for Parameter<V>where
V: SelfRustTokenize,
impl<V> SelfRustTokenize for Parameter<V>where
V: SelfRustTokenize,
fn append_to_token_stream(&self, token_stream: &mut TokenStream)
Source§fn to_tokens(&self) -> TokenStream
fn to_tokens(&self) -> TokenStream
Returns the tokens used to construct self
Source§impl<V> Visitable for Parameter<V>
impl<V> Visitable for Parameter<V>
fn visit<TData>( &self, visitors: &mut (impl VisitorReceiver<TData> + ?Sized), data: &mut TData, options: &VisitOptions, chain: &mut Annex<'_, Chain>, )
fn visit_mut<TData>( &mut self, visitors: &mut (impl VisitorMutReceiver<TData> + ?Sized), data: &mut TData, options: &VisitOptions, chain: &mut Annex<'_, Chain>, )
impl<V> StructuralPartialEq for Parameter<V>
Auto Trait Implementations§
impl<V> Freeze for Parameter<V>where
V: Freeze,
impl<V> RefUnwindSafe for Parameter<V>where
V: RefUnwindSafe,
impl<V> Send for Parameter<V>where
V: Send,
impl<V> Sync for Parameter<V>where
V: Sync,
impl<V> Unpin for Parameter<V>where
V: Unpin,
impl<V> UnwindSafe for Parameter<V>where
V: 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