Trait AssembleAware

Source
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§

Source

fn with_assemble<F, R>(&self, func: F) -> R
where F: FnOnce(&Assemble) -> R,

Get the assemble instance this value is aware of.

Source

fn with_assemble_mut<F, R>(&mut self, func: F) -> R
where F: FnOnce(&mut Assemble) -> R,

Get the assemble instance this value is aware of as a mutable reference

Provided Methods§

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.

Implementations on Foreign Types§

Source§

impl AssembleAware for Arc<RwLock<RawRwLock, Assemble>>

Source§

fn with_assemble<F, R>(&self, func: F) -> R
where F: FnOnce(&Assemble) -> R,

Source§

fn with_assemble_mut<F, R>(&mut self, func: F) -> R
where F: FnOnce(&mut Assemble) -> R,

Implementors§