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<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: Fn
paren_token: Paren
inputs: Punctuated<BareFnArg, Comma>
variadic: Option<Variadic>
output: ReturnType
Trait Implementations
sourceimpl From<TypeBareFn> for Type
impl From<TypeBareFn> for Type
sourcefn from(e: TypeBareFn) -> Type
fn from(e: TypeBareFn) -> Type
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for TypeBareFn
impl !Send for TypeBareFn
impl !Sync for TypeBareFn
impl Unpin for TypeBareFn
impl UnwindSafe for TypeBareFn
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more