Struct llvm::GlobalValue [] [src]

pub struct GlobalValue;

A value with global scope (eg: Function, Alias, Global variable)

Methods

impl GlobalValue
[src]

fn set_linkage(&self, linkage: Linkage)

Set the linkage type for this global

fn get_linkage(&self) -> Linkage

Returns the linkage type for this global

fn is_declaration(&self) -> bool

Returns true if this global is a declaration (as opposed to a definition).

Methods from Deref<Target=Value>

fn get_name(&self) -> Option<&str>

Returns the name of this value, or None if it lacks a name

fn set_name(&self, name: &str)

Sets the name of this value

fn get_type(&self) -> &Type

Returns the type of this value

Trait Implementations

impl Eq for GlobalValue
[src]

impl PartialEq<GlobalValue> for GlobalValue
[src]

fn eq(&self, other: &GlobalValue) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl<'a> PartialEq<GlobalValue> for &'a GlobalValue
[src]

fn eq(&self, other: &GlobalValue) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl<'a> From<LLVMValueRef> for &'a GlobalValue
[src]

fn from(ty: LLVMValueRef) -> &'a GlobalValue

Performs the conversion.

impl<'a> From<LLVMValueRef> for &'a mut GlobalValue
[src]

fn from(ty: LLVMValueRef) -> &'a mut GlobalValue

Performs the conversion.

impl Sub<Value> for GlobalValue
[src]

fn is(value: &Value) -> bool

Check if the given super value is an instance of this type.

fn from_super(value: &Value) -> Option<&GlobalValue>

Attempt to cast the given super value into an instance of this type.

fn to_super(&self) -> &T

Cast this value to a super value.

impl Deref for GlobalValue
[src]

type Target = Value

The resulting type after dereferencing

fn deref(&self) -> &Value

The method called to dereference a value