pub struct MethodAccessorPlugin;Expand description
Reads a declared method of a model object.
A method declared in markup metadata is read as the managed original
reads it: as a delegate bound to the object
(MarkupDelegate), which the
converters of the binding turn into a command for a command-typed target
(MethodToCommandConverter).
Neither keeps the object alive
(MarkupDelegate::for_method_of_source).
A method declared in binding metadata (ModelTypes) has no delegate
form: the accessor produces its command directly.
Trait Implementations§
Source§impl IPropertyAccessorPlugin for MethodAccessorPlugin
impl IPropertyAccessorPlugin for MethodAccessorPlugin
Auto Trait Implementations§
impl Freeze for MethodAccessorPlugin
impl RefUnwindSafe for MethodAccessorPlugin
impl Send for MethodAccessorPlugin
impl Sync for MethodAccessorPlugin
impl Unpin for MethodAccessorPlugin
impl UnsafeUnpin for MethodAccessorPlugin
impl UnwindSafe for MethodAccessorPlugin
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