pub struct GraphEdgeSelection { /* private fields */ }Expand description
The edge kinds and certainties one analysis admits.
A selection admits exactly the Cartesian intersection of the kinds and the certainties it was stated with: naming a kind twice changes nothing, and either empty side admits no edge at all. There is no default, because which relations answer a question is the caller’s to state rather than this crate’s to assume.
Implementations§
Source§impl GraphEdgeSelection
impl GraphEdgeSelection
Sourcepub fn new(kinds: &[GraphEdgeKind], certainties: &[GraphCertainty]) -> Self
pub fn new(kinds: &[GraphEdgeKind], certainties: &[GraphCertainty]) -> Self
Exactly the edges whose kind is one of kinds and whose certainty is
one of certainties.
Sourcepub fn code_relations() -> Self
pub fn code_relations() -> Self
Every source relation at every certainty, and no build-unit dependency.
Trait Implementations§
Source§impl Clone for GraphEdgeSelection
impl Clone for GraphEdgeSelection
impl Copy for GraphEdgeSelection
Source§impl Debug for GraphEdgeSelection
impl Debug for GraphEdgeSelection
impl Eq for GraphEdgeSelection
Source§impl PartialEq for GraphEdgeSelection
impl PartialEq for GraphEdgeSelection
impl StructuralPartialEq for GraphEdgeSelection
Auto Trait Implementations§
impl Freeze for GraphEdgeSelection
impl RefUnwindSafe for GraphEdgeSelection
impl Send for GraphEdgeSelection
impl Sync for GraphEdgeSelection
impl Unpin for GraphEdgeSelection
impl UnsafeUnpin for GraphEdgeSelection
impl UnwindSafe for GraphEdgeSelection
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