Enum llhd::ir::UnitName[][src]

pub enum UnitName {
    Anonymous(u32),
    Local(String),
    Global(String),
}
Expand description

A name of a function, process, or entity.

Variants

Anonymous(u32)

An anonymous name, like %42.

Tuple Fields of Anonymous

0: u32
Local(String)

A local name, like %foo.

Tuple Fields of Local

0: String
Global(String)

A global name, like @foo.

Tuple Fields of Global

0: String

Implementations

Create a new anonymous unit name.

Create a new local unit name.

Create a new global unit name.

Check whether this is a local name.

Local names can only be linked within the same module.

Check whether this is a global name.

Global names may be referenced by other modules and are considered by the global linker.

Get the underlying name.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

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

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.