[−][src]Enum llhd::ir::UnitName
A name of a function, process, or entity.
Variants
Anonymous(u32)
An anonymous name, like %42
.
Local(String)
A local name, like %foo
.
Global(String)
A global name, like @foo
.
Implementations
impl UnitName
[src]
pub fn anonymous(id: u32) -> Self
[src]
Create a new anonymous unit name.
pub fn local(name: impl Into<String>) -> Self
[src]
Create a new local unit name.
pub fn global(name: impl Into<String>) -> Self
[src]
Create a new global unit name.
pub fn is_local(&self) -> bool
[src]
Check whether this is a local name.
Local names can only be linked within the same module.
pub fn is_global(&self) -> bool
[src]
Check whether this is a global name.
Global names may be referenced by other modules and are considered by the global linker.
pub fn get_name(&self) -> Option<&str>
[src]
Get the underlying name.
Trait Implementations
impl Clone for UnitName
[src]
impl Debug for UnitName
[src]
impl<'de> Deserialize<'de> for UnitName
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for UnitName
[src]
impl Eq for UnitName
[src]
impl Hash for UnitName
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<UnitName> for UnitName
[src]
impl Serialize for UnitName
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for UnitName
[src]
impl StructuralPartialEq for UnitName
[src]
Auto Trait Implementations
impl RefUnwindSafe for UnitName
impl Send for UnitName
impl Sync for UnitName
impl Unpin for UnitName
impl UnwindSafe for UnitName
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,