pub struct BorrowInfo { /* private fields */ }
Implementations
sourceimpl BorrowInfo
impl BorrowInfo
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 dying_nodes(
&self,
next: &BorrowInfo
) -> Vec<(BorrowNode, Vec<Vec<WriteBackAction>>)>ⓘ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, Vec<Vec<WriteBackAction>>)>ⓘ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 Ord for BorrowInfo
impl Ord for BorrowInfo
sourcefn cmp(&self, other: &BorrowInfo) -> Ordering
fn cmp(&self, other: &BorrowInfo) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. 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
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.