Alias

Struct Alias 

Source
pub struct Alias<'ctx> {
    pub name: &'ctx str,
    pub ty: &'ctx Type,
    pub value_index: u64,
    pub linkage: Linkage,
    pub visibility: Visibility,
    pub storage_class: DllStorageClass,
    pub tls_mode: ThreadLocalMode,
    pub unnamed_addr: UnnamedAddr,
    pub preemption_specifier: RuntimePreemption,
}
Expand description

Models the MODULE_CODE_ALIAS record.

Fields§

§name: &'ctx str

The alias’s name.

§ty: &'ctx Type

The alias’s type.

§value_index: u64

The aliasee value index.

§linkage: Linkage

The alias’s linkage.

§visibility: Visibility

The alias’s visibility.

§storage_class: DllStorageClass

The alias’s storage class.

§tls_mode: ThreadLocalMode

The alias’s thread local storage mode.

§unnamed_addr: UnnamedAddr

The alias’s unnamed_addr specifier.

§preemption_specifier: RuntimePreemption

The alias’s preemption specifier.

Trait Implementations§

Source§

impl<'ctx> Debug for Alias<'ctx>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'ctx> Freeze for Alias<'ctx>

§

impl<'ctx> RefUnwindSafe for Alias<'ctx>

§

impl<'ctx> Send for Alias<'ctx>

§

impl<'ctx> Sync for Alias<'ctx>

§

impl<'ctx> Unpin for Alias<'ctx>

§

impl<'ctx> UnwindSafe for Alias<'ctx>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.