pub struct FunctionDeclaration {
pub name: String,
pub parameters: Vec<Parameter>,
pub is_var_arg: bool,
pub return_type: TypeRef,
pub return_attributes: Vec<ParameterAttribute>,
pub linkage: Linkage,
pub visibility: Visibility,
pub dll_storage_class: DLLStorageClass,
pub calling_convention: CallingConvention,
pub alignment: u32,
pub garbage_collector_name: Option<String>,
pub debugloc: Option<DebugLoc>,
}
Expand description
Fields§
§name: String
§parameters: Vec<Parameter>
§is_var_arg: bool
§return_type: TypeRef
§return_attributes: Vec<ParameterAttribute>
§linkage: Linkage
§visibility: Visibility
§dll_storage_class: DLLStorageClass
§calling_convention: CallingConvention
§alignment: u32
§garbage_collector_name: Option<String>
§debugloc: Option<DebugLoc>
Trait Implementations§
Source§impl Clone for FunctionDeclaration
impl Clone for FunctionDeclaration
Source§fn clone(&self) -> FunctionDeclaration
fn clone(&self) -> FunctionDeclaration
Returns a duplicate 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 FunctionDeclaration
impl Debug for FunctionDeclaration
Source§impl Hash for FunctionDeclaration
impl Hash for FunctionDeclaration
Source§impl PartialEq for FunctionDeclaration
impl PartialEq for FunctionDeclaration
impl StructuralPartialEq for FunctionDeclaration
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more