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<BareVariadic>,
    pub output: ReturnType,
}
Expand description

A bare function type: fn(usize) -> bool.

Fields§

§lifetimes: Option<BoundLifetimes>§unsafety: Option<Unsafe>§abi: Option<Abi>§fn_token: Fn§paren_token: Paren§inputs: Punctuated<BareFnArg, Comma>§variadic: Option<BareVariadic>§output: ReturnType

Trait Implementations§

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.