Enum syn::BareFnArgName
source · pub enum BareFnArgName {
Named(Ident),
Wild(Underscore),
}
Expand description
Name of an argument in a function type: the n
in fn(n: usize)
.
This type is available if Syn is built with the "derive"
or "full"
feature.
Variants
Named(Ident)
Argument given a name.
Wild(Underscore)
Argument not given a name, matched with _
.
Trait Implementations
sourceimpl Clone for BareFnArgName
impl Clone for BareFnArgName
sourcefn clone(&self) -> BareFnArgName
fn clone(&self) -> BareFnArgName
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for BareFnArgName
impl Debug for BareFnArgName
sourceimpl Hash for BareFnArgName
impl Hash for BareFnArgName
sourceimpl Parse for BareFnArgName
impl Parse for BareFnArgName
fn parse(input: ParseStream<'_>) -> Result<Self>
sourceimpl PartialEq<BareFnArgName> for BareFnArgName
impl PartialEq<BareFnArgName> for BareFnArgName
sourcefn eq(&self, other: &BareFnArgName) -> bool
fn eq(&self, other: &BareFnArgName) -> bool
sourceimpl ToTokens for BareFnArgName
impl ToTokens for BareFnArgName
sourcefn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
sourcefn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
impl Eq for BareFnArgName
impl StructuralEq for BareFnArgName
impl StructuralPartialEq for BareFnArgName
Auto Trait Implementations
impl RefUnwindSafe for BareFnArgName
impl !Send for BareFnArgName
impl !Sync for BareFnArgName
impl Unpin for BareFnArgName
impl UnwindSafe for BareFnArgName
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Spanned for Twhere
T: ToTokens,
impl<T> Spanned for Twhere
T: ToTokens,
sourcefn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty. Read more