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 PartialEq for FnHeader
[src]
impl PartialEq for FnHeader
fn eq(&self, other: &FnHeader) -> bool
[src]
fn eq(&self, other: &FnHeader) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &FnHeader) -> bool
[src]
fn ne(&self, other: &FnHeader) -> bool
This method tests for !=
.
impl Eq for FnHeader
[src]
impl Eq for FnHeader
impl Encodable for FnHeader
[src]
impl Encodable for FnHeader
impl Decodable for FnHeader
[src]
impl Decodable for FnHeader
impl Hash for FnHeader
[src]
impl Hash for FnHeader
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
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