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,
}Expand description
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: Fnparen_token: Pareninputs: Punctuated<BareFnArg, Comma>variadic: Option<Variadic>output: ReturnTypeTrait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for TypeBareFnimpl !Send for TypeBareFnimpl !Sync for TypeBareFnimpl Unpin for TypeBareFnimpl UnwindSafe for TypeBareFnBlanket Implementations
Mutably borrows from an owned value. Read more