pub trait BuilderExt:
IsA<Builder>
+ Sealed
+ 'static {
// Provided methods
fn expose_object(&self, name: &str, object: &impl IsA<Object>) { ... }
fn application(&self) -> Option<Application> { ... }
fn objects(&self) -> Vec<Object> { ... }
fn translation_domain(&self) -> Option<GString> { ... }
fn type_from_name(&self, type_name: &str) -> Type { ... }
fn set_application(&self, application: &impl IsA<Application>) { ... }
fn set_translation_domain(&self, domain: Option<&str>) { ... }
fn value_from_string(
&self,
pspec: impl AsRef<ParamSpec>,
string: &str,
) -> Result<Value, Error> { ... }
fn value_from_string_type(
&self,
type_: Type,
string: &str,
) -> Result<Value, Error> { ... }
fn connect_translation_domain_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
}
Provided Methods§
fn expose_object(&self, name: &str, object: &impl IsA<Object>)
fn application(&self) -> Option<Application>
fn objects(&self) -> Vec<Object>
fn translation_domain(&self) -> Option<GString>
fn type_from_name(&self, type_name: &str) -> Type
fn set_application(&self, application: &impl IsA<Application>)
fn set_translation_domain(&self, domain: Option<&str>)
fn value_from_string( &self, pspec: impl AsRef<ParamSpec>, string: &str, ) -> Result<Value, Error>
fn value_from_string_type( &self, type_: Type, string: &str, ) -> Result<Value, Error>
fn connect_translation_domain_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.