pub struct Binding0<P, T: Convenient>(_, _);
Implementations
sourceimpl<P: Clone + 'static, T: Convenient> Binding0<P, T>
impl<P: Clone + 'static, T: Convenient> Binding0<P, T>
pub fn new(
state: &mut dyn State,
param: P,
filter_map: fn(_: P) -> Option<T>
) -> Self
pub fn set_target(self, state: &mut dyn State, target: Box<dyn Target<T>>)
pub fn set_holder(self, state: &mut dyn State, holder: Box<dyn Holder>)
pub fn dispatch<Context: Clone + 'static>(
self,
state: &mut dyn State,
context: Context,
execute: fn(state: &mut dyn State, context: Context, value: T) -> Re<!>
)
pub fn set_target_fn<Context: Clone + 'static>(
self,
state: &mut dyn State,
context: Context,
execute: fn(state: &mut dyn State, context: Context, value: T)
)
pub fn drop_self(self, state: &mut dyn State)
pub fn get_value(self, state: &dyn State) -> Option<T>
Trait Implementations
sourceimpl<P, T: Convenient> Clone for Binding0<P, T>
impl<P, T: Convenient> Clone for Binding0<P, T>
sourceimpl<P, T: Convenient> ComponentId for Binding0<P, T>
impl<P, T: Convenient> ComponentId for Binding0<P, T>
sourceimpl<P, T: Convenient> Debug for Binding0<P, T>
impl<P, T: Convenient> Debug for Binding0<P, T>
sourceimpl<P, T: Convenient> From<Binding0<P, T>> for Binding<T>
impl<P, T: Convenient> From<Binding0<P, T>> for Binding<T>
sourceimpl<P, T: Convenient> From<Binding0<P, T>> for BindingBase<T>
impl<P, T: Convenient> From<Binding0<P, T>> for BindingBase<T>
sourcefn from(v: Binding0<P, T>) -> BindingBase<T>
fn from(v: Binding0<P, T>) -> BindingBase<T>
Converts to this type from the input type.
sourceimpl<P, T: Convenient> From<Binding0<P, T>> for AnyBindingBase
impl<P, T: Convenient> From<Binding0<P, T>> for AnyBindingBase
sourcefn from(v: Binding0<P, T>) -> AnyBindingBase
fn from(v: Binding0<P, T>) -> AnyBindingBase
Converts to this type from the input type.
sourceimpl<P, T: Convenient> Hash for Binding0<P, T>
impl<P, T: Convenient> Hash for Binding0<P, T>
sourceimpl<P, T: Convenient> Ord for Binding0<P, T>
impl<P, T: Convenient> Ord for Binding0<P, T>
sourceimpl<P, T: Convenient> PartialEq<Binding0<P, T>> for Binding0<P, T>
impl<P, T: Convenient> PartialEq<Binding0<P, T>> for Binding0<P, T>
sourceimpl<P, T: Convenient> PartialOrd<Binding0<P, T>> for Binding0<P, T>
impl<P, T: Convenient> PartialOrd<Binding0<P, T>> for Binding0<P, T>
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<P, T: Convenient> Copy for Binding0<P, T>
impl<P, T: Convenient> Eq for Binding0<P, T>
Auto Trait Implementations
impl<P, T> RefUnwindSafe for Binding0<P, T> where
P: RefUnwindSafe,
T: RefUnwindSafe,
impl<P, T> Send for Binding0<P, T>
impl<P, T> Sync for Binding0<P, T>
impl<P, T> Unpin for Binding0<P, T>
impl<P, T> UnwindSafe for Binding0<P, T> where
P: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more