pub trait PlanNodeMeta {
type Convention: ConventionMarker;
const NODE_TYPE: PlanNodeType;
// Required methods
fn plan_base(&self) -> &PlanBase<Self::Convention>;
fn plan_base_ref(&self) -> PlanBaseRef<'_>;
}
Expand description
The trait for accessing the meta data and PlanBase
for plan nodes.
Required Associated Constants§
const NODE_TYPE: PlanNodeType
Required Associated Types§
Required Methods§
sourcefn plan_base(&self) -> &PlanBase<Self::Convention>
fn plan_base(&self) -> &PlanBase<Self::Convention>
Get the reference to the PlanBase
with corresponding convention.
sourcefn plan_base_ref(&self) -> PlanBaseRef<'_>
fn plan_base_ref(&self) -> PlanBaseRef<'_>
Get the reference to the PlanBase
with erased convention.
This is mainly used for implementing AnyPlanNodeMeta
. Callers should prefer
PlanNodeMeta::plan_base
instead as it is more type-safe.
Object Safety§
This trait is not object safe.