Type Alias depends::HashSetVisitor

source ·
pub type HashSetVisitor = HashSet<usize>;
Expand description

The default Visitor type.

Aliased Type§

struct HashSetVisitor { /* private fields */ }

Trait Implementations§

source§

impl Visitor for HashSetVisitor

§

type Hasher = DefaultHasher

source§

fn visit<N>(&mut self, node: &N) -> bool
where N: Identifiable,

Return true iff this node hasn’t been visited yet.
source§

fn clear(&mut self)

Clear the internal collection, prompting this visitor to revisit all nodes on the next traversal.
source§

fn hasher(&self) -> Self::Hasher

source§

fn touch<N>(&mut self, _node: &N, _operation: Option<&'static str>)
where N: Identifiable,

Touch the node. Useful for building graph visualisations.
source§

fn notify_recalculated<N>(&mut self, _node: &N)
where N: Identifiable,

For diagnostics, notify that a node has been recalculated.
source§

fn touch_dependency_group(&mut self, _dep: &'static str)

Touch a dependency group type. Useful for building graph visualisations.
source§

fn leave<N>(&mut self, _node: &N)
where N: Identifiable,

Undo a touch. Useful for building graph visualisations.