pub struct Function {Show 17 fields
pub name: String,
pub parameters: Vec<Parameter>,
pub is_var_arg: bool,
pub return_type: TypeRef,
pub basic_blocks: Vec<BasicBlock>,
pub function_attributes: Vec<FunctionAttribute>,
pub return_attributes: Vec<ParameterAttribute>,
pub linkage: Linkage,
pub visibility: Visibility,
pub dll_storage_class: DLLStorageClass,
pub calling_convention: CallingConvention,
pub section: Option<String>,
pub comdat: Option<Comdat>,
pub alignment: u32,
pub garbage_collector_name: Option<String>,
pub personality_function: Option<ConstantRef>,
pub debugloc: Option<DebugLoc>,
}Expand description
Fields
name: Stringparameters: Vec<Parameter>is_var_arg: boolreturn_type: TypeRefbasic_blocks: Vec<BasicBlock>function_attributes: Vec<FunctionAttribute>return_attributes: Vec<ParameterAttribute>linkage: Linkagevisibility: Visibilitydll_storage_class: DLLStorageClasscalling_convention: CallingConventionsection: Option<String>comdat: Option<Comdat>alignment: u32garbage_collector_name: Option<String>personality_function: Option<ConstantRef>Personalities are used for exception handling. See LLVM 14 docs on Personality Function
debugloc: Option<DebugLoc>Implementations
Trait Implementations
sourceimpl HasDebugLoc for Function
impl HasDebugLoc for Function
sourcefn get_debug_loc(&self) -> &Option<DebugLoc>
fn get_debug_loc(&self) -> &Option<DebugLoc>
Returns the DebugLoc associated with the given Instruction,
Terminator, GlobalVariable, or Function; or None if it doesn’t
have a DebugLoc. Read more
sourceimpl PartialEq<Function> for Function
impl PartialEq<Function> for Function
impl StructuralPartialEq for Function
Auto Trait Implementations
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnwindSafe for Function
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more