struct GraphvizVisitor<'a, 'b> {
f: &'a mut Formatter<'b>,
t: DisplayFormatType,
show_metrics: ShowMetrics,
show_statistics: bool,
metric_types: &'a [MetricType],
graphviz_builder: GraphvizBuilder,
parents: Vec<usize>,
}Fields§
§f: &'a mut Formatter<'b>§t: DisplayFormatTypeHow to format each node
show_metrics: ShowMetricsHow to show metrics
show_statistics: boolIf statistics should be displayed
metric_types: &'a [MetricType]Which metric types should be rendered
graphviz_builder: GraphvizBuilder§parents: Vec<usize>Used to record parent node ids when visiting a plan.
Implementations§
Source§impl GraphvizVisitor<'_, '_>
impl GraphvizVisitor<'_, '_>
Trait Implementations§
Source§impl ExecutionPlanVisitor for GraphvizVisitor<'_, '_>
impl ExecutionPlanVisitor for GraphvizVisitor<'_, '_>
Source§fn pre_visit(&mut self, plan: &dyn ExecutionPlan) -> Result<bool, Self::Error>
fn pre_visit(&mut self, plan: &dyn ExecutionPlan) -> Result<bool, Self::Error>
Invoked on an
ExecutionPlan plan before any of its child
inputs have been visited. If Ok(true) is returned, the
recursion continues. If Err(..) or Ok(false) are returned, the
recursion stops immediately and the error, if any, is returned
to acceptSource§fn post_visit(&mut self, _plan: &dyn ExecutionPlan) -> Result<bool, Self::Error>
fn post_visit(&mut self, _plan: &dyn ExecutionPlan) -> Result<bool, Self::Error>
Invoked on an
ExecutionPlan plan after all of its child
inputs have been visited. The return value is handled the same
as the return value of pre_visit. The provided default
implementation returns Ok(true).Auto Trait Implementations§
impl<'a, 'b> Freeze for GraphvizVisitor<'a, 'b>
impl<'a, 'b> !RefUnwindSafe for GraphvizVisitor<'a, 'b>
impl<'a, 'b> !Send for GraphvizVisitor<'a, 'b>
impl<'a, 'b> !Sync for GraphvizVisitor<'a, 'b>
impl<'a, 'b> Unpin for GraphvizVisitor<'a, 'b>
impl<'a, 'b> !UnwindSafe for GraphvizVisitor<'a, 'b>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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