Struct syn::TypeBareFn
source · 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<Dot3>,
pub output: ReturnType,
}Expand description
A bare function type: fn(usize) -> bool.
This type is available 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<Dot3>§output: ReturnTypeTrait Implementations§
source§impl Clone for TypeBareFn
impl Clone for TypeBareFn
source§fn clone(&self) -> TypeBareFn
fn clone(&self) -> TypeBareFn
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for TypeBareFn
impl Debug for TypeBareFn
source§impl From<TypeBareFn> for Type
impl From<TypeBareFn> for Type
source§fn from(e: TypeBareFn) -> Type
fn from(e: TypeBareFn) -> Type
Converts to this type from the input type.