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 FnHeaderfn clone(&self) -> FnHeader[src]
fn clone(&self) -> FnHeaderReturns 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 FnHeaderimpl PartialEq for FnHeader[src]
impl PartialEq for FnHeaderfn eq(&self, other: &FnHeader) -> bool[src]
fn eq(&self, other: &FnHeader) -> boolThis 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) -> boolThis method tests for !=.
impl Eq for FnHeader[src]
impl Eq for FnHeaderimpl Encodable for FnHeader[src]
impl Encodable for FnHeaderimpl Decodable for FnHeader[src]
impl Decodable for FnHeaderimpl Hash for FnHeader[src]
impl Hash for FnHeaderfn 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 FnHeaderfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for FnHeader[src]
impl Default for FnHeader