pub struct MarkupMethod {
pub name: &'static str,
pub is_static: bool,
pub parameters: &'static [TypeOf],
pub return_type: Option<TypeOf>,
pub invoke: MarkupInvoke,
pub attributes: &'static [MarkupAttribute],
pub emit: CompilerMetadata<Option<MarkupEmit>>,
}Expand description
A method: an instance method (Add, a command method, an event handler)
or a static one (Parse, a factory method, an attached property
accessor).
Fields§
§name: &'static str§is_static: bool§parameters: &'static [TypeOf]The parameter types, without the instance.
return_type: Option<TypeOf>None for a method that returns nothing.
invoke: MarkupInvokeCalls the method: (instance, arguments..), or (arguments..) for
a static method.
attributes: &'static [MarkupAttribute]§emit: CompilerMetadata<Option<MarkupEmit>>The typed function the declaration generated for the method (see
MarkupEmit).
Trait Implementations§
Source§impl Clone for MarkupMethod
impl Clone for MarkupMethod
impl Copy for MarkupMethod
Auto Trait Implementations§
impl Freeze for MarkupMethod
impl RefUnwindSafe for MarkupMethod
impl Send for MarkupMethod
impl Sync for MarkupMethod
impl Unpin for MarkupMethod
impl UnsafeUnpin for MarkupMethod
impl UnwindSafe for MarkupMethod
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