IntoAttached

Trait IntoAttached 

Source
pub trait IntoAttached: Sized {
    // Provided method
    fn into_attached<Attachment>(
        self,
        attachment: Attachment,
    ) -> Attached<Self, Attachment> { ... }
}
Expand description

Utility trait to create object with attachments.

Provided Methods§

Source

fn into_attached<Attachment>( self, attachment: Attachment, ) -> Attached<Self, Attachment>

Attach metadata to an object.

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.

Implementors§

Source§

impl<Main: Sized> IntoAttached for Main