pub struct BorrowInfo { /* private fields */ }
Implementations
sourceimpl BorrowInfo
impl BorrowInfo
sourcepub fn get_children(&self, node: &BorrowNode) -> Vec<&BorrowNode>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
pub fn get_children(&self, node: &BorrowNode) -> Vec<&BorrowNode>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Gets the children of this node.
sourcepub fn get_parents(&self, node: &BorrowNode) -> Vec<&BorrowNode>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
pub fn get_parents(&self, node: &BorrowNode) -> Vec<&BorrowNode>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Gets the parents of this node.
sourcepub fn get_incoming(
&self,
node: &BorrowNode
) -> SetDomain<(BorrowNode, BorrowEdge)>
pub fn get_incoming(
&self,
node: &BorrowNode
) -> SetDomain<(BorrowNode, BorrowEdge)>
Gets incoming edges (together with sources) of this node.
sourcepub fn is_conditional(&self, node: &BorrowNode) -> bool
pub fn is_conditional(&self, node: &BorrowNode) -> bool
Returns true if this node is conditional, that is, it borrows from multiple parents, or has a transient child which is conditional.
sourcepub fn is_in_use(&self, node: &BorrowNode) -> bool
pub fn is_in_use(&self, node: &BorrowNode) -> bool
Checks whether a node is in use. A node is used if it is in the live_nodes set or if it is borrowed by a node which is used.
sourcepub fn is_moved(&self, node: &BorrowNode) -> bool
pub fn is_moved(&self, node: &BorrowNode) -> bool
Checks whether this is a moved node.
sourcepub fn dying_nodes(&self, next: &BorrowInfo) -> Vec<BorrowNode>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
pub fn dying_nodes(&self, next: &BorrowInfo) -> Vec<BorrowNode>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Returns nodes which are dying from this to the next state. This includes those which are directly dying plus those from which they borrow. Returns nodes in child-first order.
pub fn is_empty(&self) -> bool
pub fn borrow_info_str(&self, func_target: &FunctionTarget<'_>) -> String
Trait Implementations
sourceimpl AbstractDomain for BorrowInfo
impl AbstractDomain for BorrowInfo
fn join(&mut self, other: &Self) -> JoinResult
sourceimpl Clone for BorrowInfo
impl Clone for BorrowInfo
sourcefn clone(&self) -> BorrowInfo
fn clone(&self) -> BorrowInfo
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 BorrowInfo
impl Debug for BorrowInfo
sourceimpl Default for BorrowInfo
impl Default for BorrowInfo
sourcefn default() -> BorrowInfo
fn default() -> BorrowInfo
Returns the “default value” for a type. Read more
sourceimpl PartialEq<BorrowInfo> for BorrowInfo
impl PartialEq<BorrowInfo> for BorrowInfo
sourcefn eq(&self, other: &BorrowInfo) -> bool
fn eq(&self, other: &BorrowInfo) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &BorrowInfo) -> bool
fn ne(&self, other: &BorrowInfo) -> bool
This method tests for !=
.
sourceimpl PartialOrd<BorrowInfo> for BorrowInfo
impl PartialOrd<BorrowInfo> for BorrowInfo
sourcefn partial_cmp(&self, other: &BorrowInfo) -> Option<Ordering>
fn partial_cmp(&self, other: &BorrowInfo) -> 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 BorrowInfo
impl StructuralEq for BorrowInfo
impl StructuralPartialEq for BorrowInfo
Auto Trait Implementations
impl RefUnwindSafe for BorrowInfo
impl Send for BorrowInfo
impl Sync for BorrowInfo
impl Unpin for BorrowInfo
impl UnwindSafe for BorrowInfo
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.