[−][src]Enum llhd::ValueRef
A reference to a value in a module.
Variants
Inst(InstRef)
Block(BlockRef)
Argument(ArgumentRef)
Function(FunctionRef)
Process(ProcessRef)
Entity(EntityRef)
Global
Const(Const)
Aggregate(Aggregate)
Methods
impl ValueRef
[src]
pub fn into_const(self) -> Const
[src]
Convert this value reference into the constant it contains. Panics if the value reference does not contain a constant.
pub fn as_const(&self) -> &Const
[src]
Unwrap and return a reference to the constant represented by this value reference. Panics if the value reference does not contain a constant.
pub fn maybe_const(&self) -> Option<&Const>
[src]
Try to unwrap this value reference as a constant.
pub fn id(&self) -> Option<ValueId>
[src]
Obtain the ID of the value this reference points to, or None if the value has no ID (e.g. if it is a constant).
pub fn unwrap_inst(&self) -> InstRef
[src]
Unwrap this reference as an instruction.
Panics if this is not an instruction.
pub fn unwrap_block(&self) -> BlockRef
[src]
Unwrap this reference as a block.
Panics if this is not a block.
pub fn unwrap_argument(&self) -> ArgumentRef
[src]
Unwrap this reference as an argument.
Panics if this is not an argument.
pub fn unwrap_function(&self) -> FunctionRef
[src]
Unwrap this reference as a function.
Panics if this is not a function.
pub fn unwrap_process(&self) -> ProcessRef
[src]
Unwrap this reference as a process.
Panics if this is not a process.
pub fn unwrap_entity(&self) -> EntityRef
[src]
Unwrap this reference as an entity.
Panics if this is not an entity.
pub fn unwrap_const(&self) -> &Const
[src]
Unwrap this reference as a constant.
Panics if this is not a constant.
pub fn unwrap_aggregate(&self) -> &Aggregate
[src]
Unwrap this reference as an aggregate.
Panics if this is not an aggregate.
Trait Implementations
impl Eq for ValueRef
[src]
impl Clone for ValueRef
[src]
fn clone(&self) -> ValueRef
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Into<ValueRef> for FunctionRef
[src]
impl Into<ValueRef> for ProcessRef
[src]
impl Into<ValueRef> for EntityRef
[src]
impl Into<ValueRef> for ArgumentRef
[src]
impl Into<ValueRef> for BlockRef
[src]
impl Into<ValueRef> for InstRef
[src]
impl Into<ValueRef> for Aggregate
[src]
impl Into<ValueRef> for Const
[src]
impl PartialEq<ValueRef> for ValueRef
[src]
impl Debug for ValueRef
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,