Trait puff_rs::types::Puff

source ·
pub trait Puff: Clone + Send + Sync + 'static {
    fn puff(&self) -> Self { ... }
}
Expand description

A Trait representing a cheap clone. The only types that should implement Puff are generally references wrapped in Arc or other type that is cheaply cloned. For example a struct holding a Vec is not a good candidate for a Puff trait, but a struct holding an Arc<_> is.

Puff Types must also be lifetime free and be able to be sent across a Thread.

Provided Methods

Implementations on Foreign Types

Implementors