pub struct MarkupProperty {
pub name: &'static str,
pub type_: TypeOf,
pub get: Option<MarkupInvoke>,
pub set: Option<MarkupInvoke>,
pub attributes: &'static [MarkupAttribute],
pub typed_path_element: Option<TypedPathElement>,
pub emit_get: CompilerMetadata<Option<MarkupEmit>>,
pub emit_set: CompilerMetadata<Option<MarkupEmit>>,
}Expand description
A property that is not a registered property: a plain property with a
getter and/or a setter. Collections are read-only properties whose type
has an Add method.
Fields§
§name: &'static str§type_: TypeOf§get: Option<MarkupInvoke>Reads the property: (instance) -> value.
set: Option<MarkupInvoke>Writes the property: (instance, value).
attributes: &'static [MarkupAttribute]§typed_path_element: Option<TypedPathElement>Adds the TYPED element of this property to a compiled binding path
built at run time (what CompiledBindingPathBuilder::typed_property
adds in generated code), so that a binding whose path is this single
property is a typed binding expression. Generated by the declaration
forms from the accessors; the hook returns None (and the caller
uses the untyped element) unless the instance type of the declaration
is a shared reference type Rc<S> (notifying or not). None for a static
property and for a property with a fallible setter. See
typed_path.
emit_get: CompilerMetadata<Option<MarkupEmit>>The typed accessor functions the declaration generated for the
getter and the setter (see MarkupEmit); None for an accessor
that is not declared.
emit_set: CompilerMetadata<Option<MarkupEmit>>Trait Implementations§
Source§impl Clone for MarkupProperty
impl Clone for MarkupProperty
impl Copy for MarkupProperty
Auto Trait Implementations§
impl Freeze for MarkupProperty
impl RefUnwindSafe for MarkupProperty
impl Send for MarkupProperty
impl Sync for MarkupProperty
impl Unpin for MarkupProperty
impl UnsafeUnpin for MarkupProperty
impl UnwindSafe for MarkupProperty
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
affects_render, metadata
overrides). Read more