Struct datafusion_expr::logical_plan::display::IndentVisitor
source · [−]pub struct IndentVisitor<'a, 'b> { /* private fields */ }
Expand description
Formats plans with a single line per node. For example:
Projection: #id
Filter: #state Eq Utf8("CO")
CsvScan: employee.csv projection=Some([0, 3])“;
Implementations
Trait Implementations
sourceimpl<'a, 'b> PlanVisitor for IndentVisitor<'a, 'b>
impl<'a, 'b> PlanVisitor for IndentVisitor<'a, 'b>
sourcefn pre_visit(&mut self, plan: &LogicalPlan) -> Result<bool, Error>
fn pre_visit(&mut self, plan: &LogicalPlan) -> Result<bool, Error>
Invoked on a logical 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 accept
Read more
sourcefn post_visit(&mut self, _plan: &LogicalPlan) -> Result<bool, Error>
fn post_visit(&mut self, _plan: &LogicalPlan) -> Result<bool, Error>
Invoked on a logical 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)
. Read more
Auto Trait Implementations
impl<'a, 'b> !RefUnwindSafe for IndentVisitor<'a, 'b>
impl<'a, 'b> !Send for IndentVisitor<'a, 'b>
impl<'a, 'b> !Sync for IndentVisitor<'a, 'b>
impl<'a, 'b> Unpin for IndentVisitor<'a, 'b> where
'b: 'a,
impl<'a, 'b> !UnwindSafe for IndentVisitor<'a, 'b>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more