Struct syntax::ast::FnHeader [−][src]
pub struct FnHeader { pub unsafety: Unsafety, pub asyncness: IsAsync, pub constness: Spanned<Constness>, pub abi: Abi, }
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
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
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
asyncness: IsAsync
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
constness: Spanned<Constness>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
abi: Abi
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
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)
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
fn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>
[src]
fn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
impl Decodable for FnHeader
[src]
impl Decodable for FnHeader
fn decode<__D: Decoder>(d: &mut __D) -> Result<FnHeader, __D::Error>
[src]
fn decode<__D: Decoder>(d: &mut __D) -> Result<FnHeader, __D::Error>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
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