libadwaita::subclass::prelude

Trait BuilderScopeImpl

Source
pub trait BuilderScopeImpl: ObjectImpl {
    // Required method
    fn create_closure(
        &self,
        builder: &Builder,
        function_name: &str,
        flags: BuilderClosureFlags,
        object: Option<&Object>,
    ) -> Result<Closure, Error>;

    // Provided methods
    fn type_from_name(&self, builder: &Builder, type_name: &str) -> Type { ... }
    fn type_from_function(&self, builder: &Builder, function_name: &str) -> Type { ... }
}

Required Methods§

Source

fn create_closure( &self, builder: &Builder, function_name: &str, flags: BuilderClosureFlags, object: Option<&Object>, ) -> Result<Closure, Error>

Provided Methods§

Source

fn type_from_name(&self, builder: &Builder, type_name: &str) -> Type

Source

fn type_from_function(&self, builder: &Builder, function_name: &str) -> Type

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§