pub trait CompositeTemplate: WidgetImpl {
// Required methods
fn bind_template(klass: &mut Self::Class);
fn check_template_children(widget: &<Self as ObjectSubclass>::Type);
}
Expand description
A trait for setting up template children inside
class_init
. This
trait is implemented automatically by the
CompositeTemplate
macro.
Required Methods§
fn bind_template(klass: &mut Self::Class)
fn check_template_children(widget: &<Self as ObjectSubclass>::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.