Struct llvm_rs::value::GlobalValue
source · pub struct GlobalValue(_);Expand description
A value with global scope (eg: Function, Alias, Global variable)
Implementations§
source§impl GlobalValue
impl GlobalValue
sourcepub fn set_linkage(&self, linkage: Linkage)
pub fn set_linkage(&self, linkage: Linkage)
Set the linkage type for this global
sourcepub fn get_linkage(&self) -> Linkage
pub fn get_linkage(&self) -> Linkage
Returns the linkage type for this global
sourcepub fn is_declaration(&self) -> bool
pub fn is_declaration(&self) -> bool
Returns true if this global is a declaration (as opposed to a definition).
Methods from Deref<Target = Value>§
Trait Implementations§
source§impl Debug for GlobalValue
impl Debug for GlobalValue
source§impl Deref for GlobalValue
impl Deref for GlobalValue
source§impl<'a> From<&'a GlobalValue> for LLVMValueRef
impl<'a> From<&'a GlobalValue> for LLVMValueRef
source§fn from(ty: &'a GlobalValue) -> LLVMValueRef
fn from(ty: &'a GlobalValue) -> LLVMValueRef
Converts to this type from the input type.
source§impl<'a> From<&'a mut GlobalValue> for LLVMValueRef
impl<'a> From<&'a mut GlobalValue> for LLVMValueRef
source§fn from(ty: &'a mut GlobalValue) -> LLVMValueRef
fn from(ty: &'a mut GlobalValue) -> LLVMValueRef
Converts to this type from the input type.
source§impl<'a> From<*mut LLVMValue> for &'a GlobalValue
impl<'a> From<*mut LLVMValue> for &'a GlobalValue
source§fn from(ty: LLVMValueRef) -> &'a GlobalValue
fn from(ty: LLVMValueRef) -> &'a GlobalValue
Converts to this type from the input type.
source§impl<'a> From<*mut LLVMValue> for &'a mut GlobalValue
impl<'a> From<*mut LLVMValue> for &'a mut GlobalValue
source§fn from(ty: LLVMValueRef) -> &'a mut GlobalValue
fn from(ty: LLVMValueRef) -> &'a mut GlobalValue
Converts to this type from the input type.
source§impl<'a> PartialEq<GlobalValue> for &'a GlobalValue
impl<'a> PartialEq<GlobalValue> for &'a GlobalValue
source§fn eq(&self, other: &GlobalValue) -> bool
fn eq(&self, other: &GlobalValue) -> bool
source§impl PartialEq<GlobalValue> for GlobalValue
impl PartialEq<GlobalValue> for GlobalValue
source§fn eq(&self, other: &GlobalValue) -> bool
fn eq(&self, other: &GlobalValue) -> bool
source§impl Sub<GlobalValue> for Alias
impl Sub<GlobalValue> for Alias
source§fn is(value: &GlobalValue) -> bool
fn is(value: &GlobalValue) -> bool
Check if the given super value is an instance of this type.
source§fn from_super(value: &GlobalValue) -> Option<&Alias>
fn from_super(value: &GlobalValue) -> Option<&Alias>
Attempt to cast the given super value into an instance of this type.
source§impl Sub<GlobalValue> for Function
impl Sub<GlobalValue> for Function
source§fn is(value: &GlobalValue) -> bool
fn is(value: &GlobalValue) -> bool
Check if the given super value is an instance of this type.
source§fn from_super(value: &GlobalValue) -> Option<&Function>
fn from_super(value: &GlobalValue) -> Option<&Function>
Attempt to cast the given super value into an instance of this type.
source§impl Sub<GlobalValue> for GlobalVariable
impl Sub<GlobalValue> for GlobalVariable
source§fn is(value: &GlobalValue) -> bool
fn is(value: &GlobalValue) -> bool
Check if the given super value is an instance of this type.
source§fn from_super(value: &GlobalValue) -> Option<&GlobalVariable>
fn from_super(value: &GlobalValue) -> Option<&GlobalVariable>
Attempt to cast the given super value into an instance of this type.