pub struct IndexOptions {
pub include_guesses: bool,
pub include_dispatch: bool,
pub include_bus: bool,
}Expand description
What the caller wants left OUT of the index it is asking for.
The one knob is include_guesses, and it is spent HERE rather than at each
render site on purpose: a filter applied while the adjacency is built cannot
be forgotten by the next consumer of that adjacency, which is the same
reasoning that keeps heuristic edges in their own buckets in the first place
(see GraphIndex::heuristic_inbound).
Fields§
§include_guesses: boolWhether a scored-tier guess joins the heuristic adjacency at all.
false (--no-guess) admits ONLY graph::HeuristicTier::Ext edges
there: extension-method lookup is one of C#’s own rules, run over a
recorded bucket and unverifiable only against an out-of-graph receiver,
whereas the scored tier picked by name. An edge carrying no tier at all
– a graph written before schema 2 – is treated as the weaker of the
two and drops with the guesses.
include_dispatch: boolWhether implements/overrides edges join inbound/
outbound_by_file at all. false (--no-dispatch) admits neither
kind into either adjacency, restoring the narrower pre-dispatch-edges
answer on refs/read/impact/tests – the same “filter at index
build time” reasoning include_guesses already uses, applied to a
kind that is never itself a guess.
include_bus: boolWhether bus-hop edges join the adjacency at all – false
(--no-bus) admits none, the same terms include_dispatch states.
Trait Implementations§
Source§impl Clone for IndexOptions
impl Clone for IndexOptions
impl Copy for IndexOptions
Source§impl Debug for IndexOptions
impl Debug for IndexOptions
Source§impl Default for IndexOptions
impl Default for IndexOptions
impl Eq for IndexOptions
Source§impl PartialEq for IndexOptions
impl PartialEq for IndexOptions
impl StructuralPartialEq for IndexOptions
Auto Trait Implementations§
impl Freeze for IndexOptions
impl RefUnwindSafe for IndexOptions
impl Send for IndexOptions
impl Sync for IndexOptions
impl Unpin for IndexOptions
impl UnsafeUnpin for IndexOptions
impl UnwindSafe for IndexOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more