pub struct FunctionDeclaration {
pub name: Option<String>,
pub linkage: Linkage,
pub signature: Signature,
}
Expand description
Information about a function which can be called.
Fields§
§name: Option<String>
§linkage: Linkage
§signature: Signature
Implementations§
Source§impl FunctionDeclaration
impl FunctionDeclaration
Sourcepub fn linkage_name(&self, id: FuncId) -> Cow<'_, str>
pub fn linkage_name(&self, id: FuncId) -> Cow<'_, str>
The linkage name of the function.
Synthesized from the given function id if it is an anonymous function.
Trait Implementations§
Source§impl Debug for FunctionDeclaration
impl Debug for FunctionDeclaration
Source§impl<'de> Deserialize<'de> for FunctionDeclaration
impl<'de> Deserialize<'de> for FunctionDeclaration
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
Auto Trait Implementations§
impl Freeze for FunctionDeclaration
impl RefUnwindSafe for FunctionDeclaration
impl Send for FunctionDeclaration
impl Sync for FunctionDeclaration
impl Unpin for FunctionDeclaration
impl UnwindSafe for FunctionDeclaration
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