On
struct · ferroui-markup-xaml · v0.5.0
struct On<TReturn = ferroui_base::BoxedValue>
One branch of an option markup extension in element syntax:
<OnPlatform>
<On Options="Windows, Linux">..</On>
</OnPlatform>
TReturn is the type of the value; the non-generic form of the managed
original is On with its default type argument (any value).
Members
new
fn new() -> Rc<Self>
options
fn options(self: &Self) -> Vec<String>
The options this branch applies to.
add_option
fn add_option(self: &Self, option: impl Into<String>)
Adds an option (the list of the managed original is filled by the markup compiler).
content
fn content(self: &Self) -> Option<TReturn>
The value of the branch.
set_content
fn set_content(self: &Self, value: Option<TReturn>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyAnyValueClassDefaultsErasedDestructorIntoEitherPartialEqMarkupTyped
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.