pub struct FunctionHeader {
pub is_const: bool,
pub is_unsafe: bool,
pub is_async: bool,
pub abi: Abi,
}
Expand description
A set of fundamental properties of a function.
Fields§
§is_const: bool
Is this function marked as const
?
is_unsafe: bool
Is this function unsafe?
is_async: bool
Is this function async?
abi: Abi
The ABI used by the function.
Trait Implementations§
source§impl Clone for FunctionHeader
impl Clone for FunctionHeader
source§fn clone(&self) -> FunctionHeader
fn clone(&self) -> FunctionHeader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FunctionHeader
impl Debug for FunctionHeader
source§impl<'de> Deserialize<'de> for FunctionHeader
impl<'de> Deserialize<'de> for FunctionHeader
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for FunctionHeader
impl Hash for FunctionHeader
source§impl PartialEq for FunctionHeader
impl PartialEq for FunctionHeader
source§impl Serialize for FunctionHeader
impl Serialize for FunctionHeader
impl Eq for FunctionHeader
impl StructuralPartialEq for FunctionHeader
Auto Trait Implementations§
impl Freeze for FunctionHeader
impl RefUnwindSafe for FunctionHeader
impl Send for FunctionHeader
impl Sync for FunctionHeader
impl Unpin for FunctionHeader
impl UnwindSafe for FunctionHeader
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes