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
sourceimpl BorrowEdge
impl BorrowEdge
sourceimpl BorrowEdge
impl BorrowEdge
pub fn display<'a>(&'a self, env: &'a GlobalEnv) -> BorrowEdgeDisplay<'a>
Trait Implementations
sourceimpl Clone for BorrowEdge
impl Clone for BorrowEdge
sourcefn clone(&self) -> BorrowEdge
fn clone(&self) -> BorrowEdge
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 BorrowEdge
impl Debug for BorrowEdge
sourceimpl Ord for BorrowEdge
impl Ord for BorrowEdge
sourceimpl PartialEq<BorrowEdge> for BorrowEdge
impl PartialEq<BorrowEdge> for BorrowEdge
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &BorrowEdge) -> bool
fn ne(&self, other: &BorrowEdge) -> bool
This method tests for !=
.
sourceimpl PartialOrd<BorrowEdge> for BorrowEdge
impl PartialOrd<BorrowEdge> for BorrowEdge
sourcefn partial_cmp(&self, other: &BorrowEdge) -> Option<Ordering>
fn partial_cmp(&self, other: &BorrowEdge) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.