pub struct MisplacementCandidate { /* private fields */ }Expand description
One symbol’s selected edges into one partition other than its own.
Evidence, not a verdict: the record states how many of the symbol’s selected edges reach that partition and how many leave it at all, and leaves what to do about it to a consumer that owns a policy.
Which relations count is the caller’s selection to state, so every edge the selection admitted is counted rather than calls alone.
Implementations§
Source§impl MisplacementCandidate
impl MisplacementCandidate
Sourcepub fn symbol(self) -> GraphNodeId
pub fn symbol(self) -> GraphNodeId
The symbol whose selected edges this record counts.
Sourcepub fn declared_partition(self) -> GraphNodeId
pub fn declared_partition(self) -> GraphNodeId
The partition that declares it.
Sourcepub fn candidate_partition(self) -> GraphNodeId
pub fn candidate_partition(self) -> GraphNodeId
The other partition its selected edges reach.
Sourcepub fn foreign_edges(self) -> u32
pub fn foreign_edges(self) -> u32
How many of its selected edges reach that partition.
Sourcepub fn total_outgoing_edges(self) -> u32
pub fn total_outgoing_edges(self) -> u32
How many selected edges leave it at all.
Trait Implementations§
Source§impl Clone for MisplacementCandidate
impl Clone for MisplacementCandidate
impl Copy for MisplacementCandidate
Auto Trait Implementations§
impl Freeze for MisplacementCandidate
impl RefUnwindSafe for MisplacementCandidate
impl Send for MisplacementCandidate
impl Sync for MisplacementCandidate
impl Unpin for MisplacementCandidate
impl UnsafeUnpin for MisplacementCandidate
impl UnwindSafe for MisplacementCandidate
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