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,
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