pub struct CommandBinderService;Expand description
Finds the ICreatesCommandBinding with the highest affinity for a type of control
(CommandBinderService), as the property observation finds its observer.
Implementations§
Source§impl CommandBinderService
impl CommandBinderService
Sourcepub fn get_binder<T: ?Sized + 'static>(
has_event_target: bool,
) -> Option<Rc<dyn ICreatesCommandBinding>>
pub fn get_binder<T: ?Sized + 'static>( has_event_target: bool, ) -> Option<Rc<dyn ICreatesCommandBinding>>
The registered binder with the highest positive affinity for the control type T; of equal
affinities the first registered wins; None when every binder answers zero or less
(GetBinder<T>(bool hasEventTarget)).
Sourcepub fn get_binder_for(
target_type: TypeId,
has_event_target: bool,
) -> Option<Rc<dyn ICreatesCommandBinding>>
pub fn get_binder_for( target_type: TypeId, has_event_target: bool, ) -> Option<Rc<dyn ICreatesCommandBinding>>
get_binder for the control type target_type.
Sourcepub fn get_binder_above(
target_type: TypeId,
own_affinity: i32,
has_event_target: bool,
) -> Option<Rc<dyn ICreatesCommandBinding>>
pub fn get_binder_above( target_type: TypeId, own_affinity: i32, has_event_target: bool, ) -> Option<Rc<dyn ICreatesCommandBinding>>
The registered binder with the highest affinity for target_type when it outranks
own_affinity, the affinity of the binding the caller would make itself
(CommandBindingAffinityChecker.HasHigherAffinityPlugin<T> and GetBinder<T>).
Auto Trait Implementations§
impl Freeze for CommandBinderService
impl RefUnwindSafe for CommandBinderService
impl Send for CommandBinderService
impl Sync for CommandBinderService
impl Unpin for CommandBinderService
impl UnsafeUnpin for CommandBinderService
impl UnwindSafe for CommandBinderService
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