Trait mz_transform::notice::OptimizerNoticeApi

source ·
pub trait OptimizerNoticeApi: Sized {
    // Required methods
    fn dependencies(&self) -> BTreeSet<GlobalId>;
    fn fmt_message(
        &self,
        f: &mut Formatter<'_>,
        humanizer: &dyn ExprHumanizer,
        redacted: bool
    ) -> Result;
    fn fmt_hint(
        &self,
        f: &mut Formatter<'_>,
        humanizer: &dyn ExprHumanizer,
        redacted: bool
    ) -> Result;
    fn fmt_action(
        &self,
        f: &mut Formatter<'_>,
        humanizer: &dyn ExprHumanizer,
        redacted: bool
    ) -> Result;
    fn action_kind(&self, humanizer: &dyn ExprHumanizer) -> ActionKind;

    // Provided methods
    fn message<'a>(
        &'a self,
        humanizer: &'a dyn ExprHumanizer,
        redacted: bool
    ) -> HumanizedMessage<'a, Self> { ... }
    fn hint<'a>(
        &'a self,
        humanizer: &'a dyn ExprHumanizer,
        redacted: bool
    ) -> HumanizedHint<'a, Self> { ... }
    fn action<'a>(
        &'a self,
        humanizer: &'a dyn ExprHumanizer,
        redacted: bool
    ) -> HumanizedAction<'a, Self> { ... }
}
Expand description

An API structs RawOptimizerNotice wrapped by structs

Required Methods§

source

fn dependencies(&self) -> BTreeSet<GlobalId>

source

fn fmt_message( &self, f: &mut Formatter<'_>, humanizer: &dyn ExprHumanizer, redacted: bool ) -> Result

Format the text for the optionally redacted OptimizerNotice::message value for this notice.

source

fn fmt_hint( &self, f: &mut Formatter<'_>, humanizer: &dyn ExprHumanizer, redacted: bool ) -> Result

Format the text for the optionally redacted OptimizerNotice::hint value for this notice.

source

fn fmt_action( &self, f: &mut Formatter<'_>, humanizer: &dyn ExprHumanizer, redacted: bool ) -> Result

Format the text for the optionally redacted OptimizerNotice::action value for this notice.

source

fn action_kind(&self, humanizer: &dyn ExprHumanizer) -> ActionKind

The kind of action suggested by this notice.

Provided Methods§

source

fn message<'a>( &'a self, humanizer: &'a dyn ExprHumanizer, redacted: bool ) -> HumanizedMessage<'a, Self>

Return a thunk that will render the optionally redacted OptimizerNotice::message value for this notice.

source

fn hint<'a>( &'a self, humanizer: &'a dyn ExprHumanizer, redacted: bool ) -> HumanizedHint<'a, Self>

Return a thunk that will render the optionally redacted OptimizerNotice::hint value for this notice.

source

fn action<'a>( &'a self, humanizer: &'a dyn ExprHumanizer, redacted: bool ) -> HumanizedAction<'a, Self>

Return a thunk that will render the optionally redacted OptimizerNotice::action value for this notice.

Object Safety§

This trait is not object safe.

Implementors§