Struct cranelift_codegen::machinst::vcode::VCodeConstant
source · [−]pub struct VCodeConstant(_);
Expand description
A use of a constant by one or more VCode instructions; see VCodeConstants.
Implementations
sourceimpl VCodeConstant
impl VCodeConstant
Trait Implementations
sourceimpl Clone for VCodeConstant
impl Clone for VCodeConstant
sourcefn clone(&self) -> VCodeConstant
fn clone(&self) -> VCodeConstant
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 VCodeConstant
impl Debug for VCodeConstant
sourceimpl EntityRef for VCodeConstant
impl EntityRef for VCodeConstant
sourceimpl PartialEq<VCodeConstant> for VCodeConstant
impl PartialEq<VCodeConstant> for VCodeConstant
sourcefn eq(&self, other: &VCodeConstant) -> bool
fn eq(&self, other: &VCodeConstant) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &VCodeConstant) -> bool
fn ne(&self, other: &VCodeConstant) -> bool
This method tests for !=
.
sourceimpl ReservedValue for VCodeConstant
impl ReservedValue for VCodeConstant
sourcefn reserved_value() -> VCodeConstant
fn reserved_value() -> VCodeConstant
Create an instance of the reserved value.
sourcefn is_reserved_value(&self) -> bool
fn is_reserved_value(&self) -> bool
Checks whether value is the reserved one.
impl Copy for VCodeConstant
impl Eq for VCodeConstant
impl StructuralEq for VCodeConstant
impl StructuralPartialEq for VCodeConstant
Auto Trait Implementations
impl RefUnwindSafe for VCodeConstant
impl Send for VCodeConstant
impl Sync for VCodeConstant
impl Unpin for VCodeConstant
impl UnwindSafe for VCodeConstant
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcepub fn equivalent(&self, key: &K) -> bool
pub fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> SparseMapValue<T> for T where
T: EntityRef,
impl<T> SparseMapValue<T> for T where
T: EntityRef,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more