pub enum CallPrecision {
Exact,
Approximate,
}Expand description
How precisely a call site named the callee an edge leads to.
Both kinds of edge are sound for the capability fixed point, which only ever unions more in. They differ for anything that reports an edge to a person: an approximate edge may not exist in any real execution.
Variants§
Exact
The call site names the callee: a free function, a module-qualified export, or a method of a receiver whose type is written at the call site.
Approximate
The receiver’s type is not known without a type checker, so the call
site was resolved to every same-named method reachable through
imports. See FnEntry::required_capabilities.
Trait Implementations§
Source§impl Clone for CallPrecision
impl Clone for CallPrecision
Source§fn clone(&self) -> CallPrecision
fn clone(&self) -> CallPrecision
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CallPrecision
Source§impl Debug for CallPrecision
impl Debug for CallPrecision
impl Eq for CallPrecision
Source§impl Ord for CallPrecision
impl Ord for CallPrecision
Source§fn cmp(&self, other: &CallPrecision) -> Ordering
fn cmp(&self, other: &CallPrecision) -> Ordering
1.21.0 (const: unstable) · 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 for CallPrecision
impl PartialEq for CallPrecision
Source§fn eq(&self, other: &CallPrecision) -> bool
fn eq(&self, other: &CallPrecision) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CallPrecision
impl PartialOrd for CallPrecision
impl StructuralPartialEq for CallPrecision
Auto Trait Implementations§
impl Freeze for CallPrecision
impl RefUnwindSafe for CallPrecision
impl Send for CallPrecision
impl Sync for CallPrecision
impl Unpin for CallPrecision
impl UnsafeUnpin for CallPrecision
impl UnwindSafe for CallPrecision
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.