pub struct Alias(_);Expand description
An alias to another global value.
Methods from Deref<Target = 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 Deref for Alias
impl Deref for Alias
§type Target = GlobalValue
type Target = GlobalValue
The resulting type after dereferencing.
source§fn deref(&self) -> &GlobalValue
fn deref(&self) -> &GlobalValue
Dereferences the value.
source§impl<'a> From<&'a Alias> for LLVMValueRef
impl<'a> From<&'a Alias> for LLVMValueRef
source§fn from(ty: &'a Alias) -> LLVMValueRef
fn from(ty: &'a Alias) -> LLVMValueRef
Converts to this type from the input type.
source§impl<'a> From<&'a mut Alias> for LLVMValueRef
impl<'a> From<&'a mut Alias> for LLVMValueRef
source§fn from(ty: &'a mut Alias) -> LLVMValueRef
fn from(ty: &'a mut Alias) -> LLVMValueRef
Converts to this type from the input type.
source§impl<'a> From<*mut LLVMValue> for &'a Alias
impl<'a> From<*mut LLVMValue> for &'a Alias
source§fn from(ty: LLVMValueRef) -> &'a Alias
fn from(ty: LLVMValueRef) -> &'a Alias
Converts to this type from the input type.
source§impl<'a> From<*mut LLVMValue> for &'a mut Alias
impl<'a> From<*mut LLVMValue> for &'a mut Alias
source§fn from(ty: LLVMValueRef) -> &'a mut Alias
fn from(ty: LLVMValueRef) -> &'a mut Alias
Converts to this type from the input type.
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.