Struct llvm_ir::module::GlobalVariable[][src]

pub struct GlobalVariable {
    pub name: Name,
    pub linkage: Linkage,
    pub visibility: Visibility,
    pub is_constant: bool,
    pub ty: TypeRef,
    pub addr_space: AddrSpace,
    pub dll_storage_class: DLLStorageClass,
    pub thread_local_mode: ThreadLocalMode,
    pub unnamed_addr: Option<UnnamedAddr>,
    pub initializer: Option<ConstantRef>,
    pub section: Option<String>,
    pub comdat: Option<Comdat>,
    pub alignment: u32,
    pub debugloc: Option<DebugLoc>,
}

See LLVM 12 docs on Global Variables

Fields

name: Namelinkage: Linkagevisibility: Visibilityis_constant: boolty: TypeRefaddr_space: AddrSpacedll_storage_class: DLLStorageClassthread_local_mode: ThreadLocalModeunnamed_addr: Option<UnnamedAddr>initializer: Option<ConstantRef>section: Option<String>comdat: Option<Comdat>alignment: u32debugloc: Option<DebugLoc>

Trait Implementations

impl Clone for GlobalVariable[src]

impl Debug for GlobalVariable[src]

impl HasDebugLoc for GlobalVariable[src]

impl PartialEq<GlobalVariable> for GlobalVariable[src]

impl StructuralPartialEq for GlobalVariable[src]

impl Typed for GlobalVariable[src]

Auto Trait Implementations

impl RefUnwindSafe for GlobalVariable[src]

impl Send for GlobalVariable[src]

impl Sync for GlobalVariable[src]

impl Unpin for GlobalVariable[src]

impl UnwindSafe for GlobalVariable[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.