Struct tvix_eval::opcode::ConstantIdx
source · #[repr(transparent)]pub struct ConstantIdx(pub usize);
Expand description
Index of a constant in the current code chunk.
Tuple Fields§
§0: usize
Trait Implementations§
source§impl Clone for ConstantIdx
impl Clone for ConstantIdx
source§fn clone(&self) -> ConstantIdx
fn clone(&self) -> ConstantIdx
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 ConstantIdx
impl Debug for ConstantIdx
source§impl PartialEq for ConstantIdx
impl PartialEq for ConstantIdx
source§fn eq(&self, other: &ConstantIdx) -> bool
fn eq(&self, other: &ConstantIdx) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ConstantIdx
impl Eq for ConstantIdx
impl StructuralPartialEq for ConstantIdx
Auto Trait Implementations§
impl Freeze for ConstantIdx
impl RefUnwindSafe for ConstantIdx
impl Send for ConstantIdx
impl Sync for ConstantIdx
impl Unpin for ConstantIdx
impl UnwindSafe for ConstantIdx
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.