Struct llvm_ir::constant::ConstantRef
source · [−]pub struct ConstantRef(_);
Expand description
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
sourceimpl ConstantRef
impl ConstantRef
Trait Implementations
sourceimpl AsRef<Constant> for ConstantRef
impl AsRef<Constant> for ConstantRef
sourceimpl Clone for ConstantRef
impl Clone for ConstantRef
sourcefn clone(&self) -> ConstantRef
fn clone(&self) -> ConstantRef
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ConstantRef
impl Debug for ConstantRef
sourceimpl Deref for ConstantRef
impl Deref for ConstantRef
sourceimpl Display for ConstantRef
impl Display for ConstantRef
sourceimpl PartialEq<ConstantRef> for ConstantRef
impl PartialEq<ConstantRef> for ConstantRef
sourcefn eq(&self, other: &ConstantRef) -> bool
fn eq(&self, other: &ConstantRef) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl StructuralPartialEq for ConstantRef
Auto Trait Implementations
impl RefUnwindSafe for ConstantRef
impl Send for ConstantRef
impl Sync for ConstantRef
impl Unpin for ConstantRef
impl UnwindSafe for ConstantRef
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more