Enum bytecode::stackless_bytecode::BorrowNode
source · pub enum BorrowNode {
GlobalRoot(QualifiedInstId<StructId>),
LocalRoot(TempIndex),
Reference(TempIndex),
ReturnPlaceholder(usize),
}
Expand description
A borrow node – used in memory operations.
Variants§
GlobalRoot(QualifiedInstId<StructId>)
LocalRoot(TempIndex)
Reference(TempIndex)
ReturnPlaceholder(usize)
Implementations§
source§impl BorrowNode
impl BorrowNode
source§impl BorrowNode
impl BorrowNode
sourcepub fn display<'env>(
&'env self,
func_target: &'env FunctionTarget<'env>
) -> BorrowNodeDisplay<'env>
pub fn display<'env>( &'env self, func_target: &'env FunctionTarget<'env> ) -> BorrowNodeDisplay<'env>
Creates a format object for a borrow node in context of a function target.
Trait Implementations§
source§impl Clone for BorrowNode
impl Clone for BorrowNode
source§fn clone(&self) -> BorrowNode
fn clone(&self) -> BorrowNode
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 BorrowNode
impl Debug for BorrowNode
source§impl Ord for BorrowNode
impl Ord for BorrowNode
source§fn cmp(&self, other: &BorrowNode) -> Ordering
fn cmp(&self, other: &BorrowNode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<BorrowNode> for BorrowNode
impl PartialEq<BorrowNode> for BorrowNode
source§fn eq(&self, other: &BorrowNode) -> bool
fn eq(&self, other: &BorrowNode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<BorrowNode> for BorrowNode
impl PartialOrd<BorrowNode> for BorrowNode
source§fn partial_cmp(&self, other: &BorrowNode) -> Option<Ordering>
fn partial_cmp(&self, other: &BorrowNode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for BorrowNode
impl StructuralEq for BorrowNode
impl StructuralPartialEq for BorrowNode
Auto Trait Implementations§
impl RefUnwindSafe for BorrowNode
impl Send for BorrowNode
impl Sync for BorrowNode
impl Unpin for BorrowNode
impl UnwindSafe for BorrowNode
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.