pub struct InstructionI(pub usize);
Expand description
An InstructionI
represents an index into Slab.cs.instrs
.
It behaves much like a pointer or reference, but it is ‘safe’ (unlike a raw pointer) and is not managed by the Rust borrow checker (unlike a reference).
Tuple Fields§
§0: usize
Trait Implementations§
Source§impl Clone for InstructionI
impl Clone for InstructionI
Source§fn clone(&self) -> InstructionI
fn clone(&self) -> InstructionI
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 InstructionI
impl Debug for InstructionI
Source§impl PartialEq for InstructionI
impl PartialEq for InstructionI
impl Copy for InstructionI
impl StructuralPartialEq for InstructionI
Auto Trait Implementations§
impl Freeze for InstructionI
impl RefUnwindSafe for InstructionI
impl Send for InstructionI
impl Sync for InstructionI
impl Unpin for InstructionI
impl UnwindSafe for InstructionI
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