Enum bytecode::stackless_bytecode::BorrowEdge
source · pub enum BorrowEdge {
Direct,
Field(QualifiedInstId<StructId>, usize),
Index,
Hyper(Vec<BorrowEdge>),
}
Expand description
A borrow edge.
Variants§
Direct
Direct borrow.
Field(QualifiedInstId<StructId>, usize)
Field borrow with static offset.
Index
Vector borrow with dynamic index.
Hyper(Vec<BorrowEdge>)
Composed sequence of edges.
Implementations§
source§impl BorrowEdge
impl BorrowEdge
pub fn flatten(&self) -> Vec<&BorrowEdge> ⓘ
pub fn instantiate(&self, params: &[Type]) -> Self
source§impl BorrowEdge
impl BorrowEdge
pub fn display<'a>(&'a self, env: &'a GlobalEnv) -> BorrowEdgeDisplay<'a>
Trait Implementations§
source§impl Clone for BorrowEdge
impl Clone for BorrowEdge
source§fn clone(&self) -> BorrowEdge
fn clone(&self) -> BorrowEdge
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 BorrowEdge
impl Debug for BorrowEdge
source§impl Ord for BorrowEdge
impl Ord for BorrowEdge
source§fn cmp(&self, other: &BorrowEdge) -> Ordering
fn cmp(&self, other: &BorrowEdge) -> 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<BorrowEdge> for BorrowEdge
impl PartialEq<BorrowEdge> for BorrowEdge
source§fn eq(&self, other: &BorrowEdge) -> bool
fn eq(&self, other: &BorrowEdge) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<BorrowEdge> for BorrowEdge
impl PartialOrd<BorrowEdge> for BorrowEdge
source§fn partial_cmp(&self, other: &BorrowEdge) -> Option<Ordering>
fn partial_cmp(&self, other: &BorrowEdge) -> 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 BorrowEdge
impl StructuralEq for BorrowEdge
impl StructuralPartialEq for BorrowEdge
Auto Trait Implementations§
impl RefUnwindSafe for BorrowEdge
impl Send for BorrowEdge
impl Sync for BorrowEdge
impl Unpin for BorrowEdge
impl UnwindSafe for BorrowEdge
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.