Struct llvm_ir::constant::ConstantRef[][src]

pub struct ConstantRef(_);

A ConstantRef is a reference to a Constant. Most importantly, it implements AsRef<Constant> and Deref<Target = Constant>. It also has a cheap Clone -- only the reference is cloned, not the underlying Constant.

Implementations

impl ConstantRef[src]

pub fn new(c: Constant) -> Self[src]

Construct a new ConstantRef by consuming the given owned Constant.

Trait Implementations

impl AsRef<Constant> for ConstantRef[src]

impl Clone for ConstantRef[src]

impl Debug for ConstantRef[src]

impl Deref for ConstantRef[src]

type Target = Constant

The resulting type after dereferencing.

impl Display for ConstantRef[src]

impl PartialEq<ConstantRef> for ConstantRef[src]

impl StructuralPartialEq for ConstantRef[src]

impl Typed for ConstantRef[src]

Auto Trait Implementations

impl RefUnwindSafe for ConstantRef[src]

impl Send for ConstantRef[src]

impl Sync for ConstantRef[src]

impl Unpin for ConstantRef[src]

impl UnwindSafe for ConstantRef[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> ToString for T where
    T: Display + ?Sized
[src]

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.