Skip to main content

Overrides

Trait Overrides 

Source
pub trait Overrides: Send + Sync {
    // Required method
    fn call(
        &self,
        builder: *mut (),
        step: Step,
        arguments: &[Arg<'_>],
    ) -> Option<Result<Ret>>;
}
Expand description

The overrides of a builder’s steps.

Required Methods§

Source

fn call( &self, builder: *mut (), step: Step, arguments: &[Arg<'_>], ) -> Option<Result<Ret>>

Runs the override of step on builder (a *mut Builder<D> lent for the call, for an override that calls back into the builder), or None when the step is not overridden.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§