Struct syntax::ast::FnHeader [−][src]
pub struct FnHeader { pub unsafety: Unsafety, pub asyncness: IsAsync, pub constness: Spanned<Constness>, pub abi: Abi, }
A function header
All the information between the visibility & the name of the function is
included in this struct (e.g. async unsafe fn
or const extern "C" fn
)
Fields
unsafety: Unsafety
asyncness: IsAsync
constness: Spanned<Constness>
abi: Abi
Trait Implementations
impl Clone for FnHeader
[src]
impl Clone for FnHeader
fn clone(&self) -> FnHeader
[src]
fn clone(&self) -> FnHeader
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for FnHeader
[src]
impl Copy for FnHeader
impl Encodable for FnHeader
[src]
impl Encodable for FnHeader
impl Decodable for FnHeader
[src]
impl Decodable for FnHeader
impl Debug for FnHeader
[src]
impl Debug for FnHeader
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for FnHeader
[src]
impl Default for FnHeader