pub struct EdgeFilter {
pub evidence: Option<BTreeSet<Evidence>>,
pub min_confidence: Option<Confidence>,
pub relations: Option<BTreeSet<Relation>>,
pub scopes: Option<BTreeSet<CorpusScope>>,
}Expand description
Which edges a traversal may walk. Containment is structure, not dependency, so it never participates.
Fields§
§evidence: Option<BTreeSet<Evidence>>Allowed evidence kinds; None = all.
min_confidence: Option<Confidence>Minimum confidence; None = any.
relations: Option<BTreeSet<Relation>>Allowed relations; None = all (Contains stays excluded either way).
scopes: Option<BTreeSet<CorpusScope>>Allowed corpus roles for nodes entered after the explicit start. None = all. Exact lookup of the start remains independent of scope.
Implementations§
Source§impl EdgeFilter
impl EdgeFilter
pub fn admits(&self, edge: &Edge) -> bool
pub fn admits_scope(&self, scope: CorpusScope) -> bool
Trait Implementations§
Source§impl Clone for EdgeFilter
impl Clone for EdgeFilter
Source§fn clone(&self) -> EdgeFilter
fn clone(&self) -> EdgeFilter
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 moreSource§impl Debug for EdgeFilter
impl Debug for EdgeFilter
Source§impl Default for EdgeFilter
impl Default for EdgeFilter
Source§fn default() -> EdgeFilter
fn default() -> EdgeFilter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EdgeFilter
impl RefUnwindSafe for EdgeFilter
impl Send for EdgeFilter
impl Sync for EdgeFilter
impl Unpin for EdgeFilter
impl UnsafeUnpin for EdgeFilter
impl UnwindSafe for EdgeFilter
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