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, }
This is supported on crate features
full
or derive
only.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]This is supported on crate feature
clone-impls
only.fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TypeBareFn
[src]
impl Debug for TypeBareFn
[src]This is supported on crate feature
extra-traits
only.impl Eq for TypeBareFn
[src]
impl Eq for TypeBareFn
[src]This is supported on crate feature
extra-traits
only.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]This is supported on crate feature
extra-traits
only.impl Parse for TypeBareFn
[src]
impl Parse for TypeBareFn
[src]This is supported on crate feature
parsing
only.fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
impl PartialEq<TypeBareFn> for TypeBareFn
[src]
impl PartialEq<TypeBareFn> for TypeBareFn
[src]This is supported on crate feature
extra-traits
only.impl ToTokens for TypeBareFn
[src]
impl ToTokens for TypeBareFn
[src]This is supported on crate feature
printing
only.fn to_tokens(&self, tokens: &mut TokenStream)
[src]
pub fn to_token_stream(&self) -> TokenStream
[src]
pub fn into_token_stream(self) -> TokenStream
[src]
Auto Trait Implementations
impl RefUnwindSafe for TypeBareFn
impl RefUnwindSafe for TypeBareFn
impl !Send for TypeBareFn
impl !Send for TypeBareFn
impl !Sync for TypeBareFn
impl !Sync for TypeBareFn
impl Unpin for TypeBareFn
impl Unpin for TypeBareFn
impl UnwindSafe for TypeBareFn
impl UnwindSafe for TypeBareFn