Trait CloneExt

Source
pub trait CloneExt: 'static {
    // Required methods
    fn get_source(&self) -> Option<Actor>;
    fn set_source<P: IsA<Actor>>(&self, source: Option<&P>);
    fn connect_property_source_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId;
}
Expand description

Trait containing all Clone methods.

§Implementors

Clone

Required Methods§

Source

fn get_source(&self) -> Option<Actor>

Retrieves the source Actor being cloned by self.

§Returns

the actor source for the clone

Source

fn set_source<P: IsA<Actor>>(&self, source: Option<&P>)

Sets source as the source actor to be cloned by self.

§source

a Actor, or None

Source

fn connect_property_source_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

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<O: IsA<Clone>> CloneExt for O