ElementBase

Trait ElementBase 

Source
pub unsafe trait ElementBase: IsA<Element> + ObjectType{
    // Provided methods
    fn parent_change_state(&self, transition: StateChange) -> StateChangeReturn { ... }
    fn parent_send_event(&self, event: Event) -> bool { ... }
    fn parent_query(&self, query: &mut QueryRef) -> bool { ... }
    fn parent_set_context(&self, context: &Context) { ... }
    fn catch_panic<T, F: FnOnce(&Self) -> T, G: FnOnce() -> T>(
        &self,
        fallback: G,
        f: F,
    ) -> T { ... }
}

Provided Methods§

Source

fn parent_change_state(&self, transition: StateChange) -> StateChangeReturn

Source

fn parent_send_event(&self, event: Event) -> bool

Source

fn parent_query(&self, query: &mut QueryRef) -> bool

Source

fn parent_set_context(&self, context: &Context)

Source

fn catch_panic<T, F: FnOnce(&Self) -> T, G: FnOnce() -> T>( &self, fallback: G, f: F, ) -> T

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§