pub trait AssembleAware {
// Required methods
fn with_assemble<F, R>(&self, func: F) -> R
where F: FnOnce(&Assemble) -> R;
fn with_assemble_mut<F, R>(&mut self, func: F) -> R
where F: FnOnce(&mut Assemble) -> R;
// Provided method
fn start_parameter(&self) -> StartParameter { ... }
}
Expand description
A type that’s aware it’s part of an assemble build
Required Methods§
Sourcefn with_assemble<F, R>(&self, func: F) -> R
fn with_assemble<F, R>(&self, func: F) -> R
Get the assemble instance this value is aware of.
Sourcefn with_assemble_mut<F, R>(&mut self, func: F) -> R
fn with_assemble_mut<F, R>(&mut self, func: F) -> R
Get the assemble instance this value is aware of as a mutable reference
Provided Methods§
fn start_parameter(&self) -> StartParameter
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.