MarkupProperty
struct · ferroui-base · v0.5.0
struct MarkupProperty
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.
Members
name
name: &'static str
type_
type_: TypeOf
get
get: Option<MarkupInvoke>
Reads the property: (instance) -> value.
set
set: Option<MarkupInvoke>
Writes the property: (instance, value).
attributes
attributes: &'static [MarkupAttribute]
typed_path_element
typed_path_element: Option<super::typed_path::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, for a property with a fallible setter and for a declaration
whose instance type cannot be such a handle (a class of the object
model, a struct or a contract without this:). See
typed_path.
emit_get
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
emit_set: CompilerMetadata<Option<MarkupEmit>>
value_markup
value_markup: fn() -> Option<&'static MarkupType>
The metadata of the value type of the property, when it has metadata
(MarkupTyped: T, Option<T>, Rc<T> or Option<Rc<T>>). With the tables of
types trimmed (without type-tables), registering a type registers the metadata of
the value types of its properties, which a binding through the property finds by
handle. The declaration forms generate it; || None otherwise.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneCopy
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.