Template
struct · ferroui-markup-xaml · v0.5.0
struct Template
A template that builds a control.
Members
new
fn new() -> Rc<Self>
content
fn content(self: &Self) -> Option<BoxedValue>
The template content: deferred content built on each
build.
set_content
fn set_content(self: &Self, value: Option<BoxedValue>)
build
fn build(self: &Self) -> Option<Ref<Control>>
Builds the control.
as_template
fn as_template(self: &Self) -> Rc<dyn ITemplateOf<Option<Ref<Control>>>>
The template as the typed template contract.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyAnyValueClassDefaultsErasedDestructorIntoEitherITemplateOf<Option<Ref<Control>>>ITemplateOf<Ref<Control>>ITemplatePartialEqMarkupTyped
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.