Struct syn::TypeBareFn [−][src]
pub struct TypeBareFn { pub lifetimes: Option<BoundLifetimes>, pub unsafety: Option<Unsafe>, pub abi: Option<Abi>, pub fn_token: Fn, pub paren_token: Paren, pub inputs: Punctuated<BareFnArg, Comma>, pub variadic: Option<Variadic>, pub output: ReturnType, }
A bare function type: fn(usize) -> bool
.
This type is available only if Syn is built with the "derive"
or
"full"
feature.
Fields
lifetimes: Option<BoundLifetimes>
unsafety: Option<Unsafe>
abi: Option<Abi>
fn_token: Fn
paren_token: Paren
inputs: Punctuated<BareFnArg, Comma>
variadic: Option<Variadic>
output: ReturnType
Trait Implementations
impl Clone for TypeBareFn
[src]
impl Clone for TypeBareFn
[src]fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl From<TypeBareFn> for Type
[src]
impl From<TypeBareFn> for Type
[src]fn from(e: TypeBareFn) -> Type
[src]
impl Hash for TypeBareFn
[src]
impl Hash for TypeBareFn
[src]impl Parse for TypeBareFn
[src]
impl Parse for TypeBareFn
[src]fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
impl PartialEq<TypeBareFn> for TypeBareFn
[src]
impl PartialEq<TypeBareFn> for TypeBareFn
[src]impl ToTokens for TypeBareFn
[src]
impl ToTokens for TypeBareFn
[src]