CompiledBindingExtension
struct · ferroui-markup-xaml · v0.5.0
struct CompiledBindingExtension
{CompiledBinding Path}: a binding with a compiled path, as markup
declares it. Providing its value creates the binding with the context of
the place it is declared in (the default anchor).
The managed class derives from the compiled binding class; here it holds
one (base) and dereferences to it, so the inherited
properties are read and set on the extension itself.
Members
new
fn new() -> Rc<Self>
with_path
fn with_path(path: CompiledBindingPath) -> Rc<Self>
Creates the extension with a path.
base
fn base(self: &Self) -> &Rc<CompiledBinding>
The compiled binding this extension is (the base class part).
provide_value
fn provide_value(self: &Self, provider: Option<&Rc<dyn IServiceProvider>>) -> Rc<CompiledBinding>
Creates the binding the extension describes.
data_type
fn data_type(self: &Self) -> Option<ValueType>
The type of the data context the path was compiled against.
set_data_type
fn set_data_type(self: &Self, value: Option<ValueType>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyAnyValueClassDefaultsErasedDestructorIntoEitherDerefBindingBasePartialEqMarkupTyped
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.