pub enum SetterValue {
Value(BoxedValue),
Binding(Rc<dyn IObservable<BoxedValue>>),
BindingBase(Rc<dyn BindingBase>),
Template(Rc<dyn ITemplate>),
}Expand description
The value of a Setter.
Variants§
Value(BoxedValue)
A plain value, which must hold exactly the value type of the setter’s property.
Binding(Rc<dyn IObservable<BoxedValue>>)
A source of values: the setter binds the property to it on every control the style is applied to.
This is the seam for binding descriptions: a binding class will create its per-control source where this variant uses the same observable for every control.
BindingBase(Rc<dyn BindingBase>)
A binding description: the setter instantiates the binding on every control the style is applied to.
Template(Rc<dyn ITemplate>)
A template: the setter sets the property to the object the template builds, building it lazily once per control.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SetterValue
impl !Send for SetterValue
impl !Sync for SetterValue
impl !UnwindSafe for SetterValue
impl Freeze for SetterValue
impl Unpin for SetterValue
impl UnsafeUnpin for SetterValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more