StaticWrappable

Trait StaticWrappable 

Source
pub trait StaticWrappable: 'static {
    // Required methods
    fn wrap(&self, name: Arguments<'_>) -> Wrapper<Self>;
    fn wrap_signal(&self, signal: u8, name: Arguments<'_>) -> Wrapper<Self>;
}
Expand description

Helper trait for constructing Wrapper<T>s with type equal to TypeId::of::<Self>()

Required Methods§

Source

fn wrap(&self, name: Arguments<'_>) -> Wrapper<Self>

Source

fn wrap_signal(&self, signal: u8, name: Arguments<'_>) -> Wrapper<Self>

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<T: ?Sized + 'static> StaticWrappable for T