Struct transform::column_knowledge::ColumnKnowledge [−][src]
pub struct ColumnKnowledge {
recursion_guard: RecursionGuard,
}
Expand description
Harvest and act upon per-column information.
Fields
recursion_guard: RecursionGuard
Implementations
fn harvest(
&self,
expr: &mut MirRelationExpr,
knowledge: &mut HashMap<Id, Vec<DatumKnowledge>>,
knowledge_stack: &mut Vec<DatumKnowledge>
) -> Result<Vec<DatumKnowledge>, TransformError>
fn harvest(
&self,
expr: &mut MirRelationExpr,
knowledge: &mut HashMap<Id, Vec<DatumKnowledge>>,
knowledge_stack: &mut Vec<DatumKnowledge>
) -> Result<Vec<DatumKnowledge>, TransformError>
Harvest per-column knowledge.
knowledge_stack
is a pre-allocated vector but is expected not to contain any elements.
Trait Implementations
Extracts a reference to the recursion guard embedded within the type.
fn checked_recur<F, T, E>(&self, f: F) -> Result<T, E> where
F: FnOnce(&Self) -> Result<T, E>,
E: From<RecursionLimitError>,
fn checked_recur<F, T, E>(&self, f: F) -> Result<T, E> where
F: FnOnce(&Self) -> Result<T, E>,
E: From<RecursionLimitError>,
Checks whether it is safe to recur and calls f
if so. Read more
fn checked_recur_mut<F, T, E>(&mut self, f: F) -> Result<T, E> where
F: FnOnce(&mut Self) -> Result<T, E>,
E: From<RecursionLimitError>,
fn checked_recur_mut<F, T, E>(&mut self, f: F) -> Result<T, E> where
F: FnOnce(&mut Self) -> Result<T, E>,
E: From<RecursionLimitError>,
Like CheckedRecursion::checked_recur
, but operates on a mutable
reference to Self
. Read more
Returns the “default value” for a type. Read more
fn transform(
&self,
expr: &mut MirRelationExpr,
_: TransformArgs<'_>
) -> Result<(), TransformError>
fn transform(
&self,
expr: &mut MirRelationExpr,
_: TransformArgs<'_>
) -> Result<(), TransformError>
Transforms an expression through accumulated knowledge.
Auto Trait Implementations
impl !RefUnwindSafe for ColumnKnowledge
impl Send for ColumnKnowledge
impl !Sync for ColumnKnowledge
impl Unpin for ColumnKnowledge
impl UnwindSafe for ColumnKnowledge
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more