pub struct MarkupField {
pub name: &'static str,
pub type_: TypeOf,
pub get: fn() -> MarkupValue,
pub attributes: &'static [MarkupAttribute],
pub emit: CompilerMetadata<Option<MarkupEmit>>,
}Expand description
A static field of the managed original: a static readonly field or a
constant (Button.ClickEvent, ObjectConverters.IsNull). A static
PROPERTY (static T Name { get; }: Brushes.Red) is declared in
MarkupType::static_properties.
Fields§
§name: &'static str§type_: TypeOf§get: fn() -> MarkupValue§attributes: &'static [MarkupAttribute]§emit: CompilerMetadata<Option<MarkupEmit>>The typed function of the field, for the emitter of Rust source.
Trait Implementations§
Source§impl Clone for MarkupField
impl Clone for MarkupField
impl Copy for MarkupField
Auto Trait Implementations§
impl Freeze for MarkupField
impl RefUnwindSafe for MarkupField
impl Send for MarkupField
impl Sync for MarkupField
impl Unpin for MarkupField
impl UnsafeUnpin for MarkupField
impl UnwindSafe for MarkupField
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