Struct llvm_ir::constant::ConstantRef
source · pub struct ConstantRef(/* private fields */);
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§
Trait Implementations§
source§impl AsRef<Constant> for ConstantRef
impl AsRef<Constant> for ConstantRef
source§impl Clone for ConstantRef
impl Clone for ConstantRef
source§fn clone(&self) -> ConstantRef
fn clone(&self) -> ConstantRef
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConstantRef
impl Debug for ConstantRef
source§impl Deref for ConstantRef
impl Deref for ConstantRef
source§impl Display for ConstantRef
impl Display for ConstantRef
source§impl PartialEq for ConstantRef
impl PartialEq for ConstantRef
source§fn 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 ==
.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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more