Trait InputExt

Source
pub trait InputExt {
    // Required methods
    unsafe fn connect_text_changed<F: FnMut(&Self, Ref<QString>) + 'static>(
        &self,
        cb: F,
    );
    unsafe fn connect_return_pressed<F: FnMut(&Self) + 'static>(&self, cb: F);
}

Required Methods§

Source

unsafe fn connect_text_changed<F: FnMut(&Self, Ref<QString>) + 'static>( &self, cb: F, )

§Safety

The QObjects referenced by self and receiver must be alive.

Source

unsafe fn connect_return_pressed<F: FnMut(&Self) + 'static>(&self, cb: F)

§Safety

The QObjects referenced by self and receiver must be alive.

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 InputExt for QBox<QLineEdit>

Source§

unsafe fn connect_text_changed<F: FnMut(&Self, Ref<QString>) + 'static>( &self, cb: F, )

Source§

unsafe fn connect_return_pressed<F: FnMut(&Self) + 'static>(&self, cb: F)

Implementors§