pub struct Binding<Value> { /* private fields */ }Expand description
Represents a thread-safe, sharable binding
Implementations§
Trait Implementations§
Source§impl<Value: 'static + Clone + PartialEq + Send> Changeable for Binding<Value>
impl<Value: 'static + Clone + PartialEq + Send> Changeable for Binding<Value>
Source§fn when_changed(&self, what: Arc<dyn Notifiable>) -> Box<dyn Releasable>
fn when_changed(&self, what: Arc<dyn Notifiable>) -> Box<dyn Releasable>
Supplies a function to be notified when this item is changed Read more
Source§impl<'a, Value: 'static + Clone + PartialEq + Send> From<&'a Binding<Value>> for BindRef<Value>
impl<'a, Value: 'static + Clone + PartialEq + Send> From<&'a Binding<Value>> for BindRef<Value>
Source§impl<'a, Value: 'static + Clone + PartialEq + Send> From<&'a Binding<Value>> for Binding<Value>
impl<'a, Value: 'static + Clone + PartialEq + Send> From<&'a Binding<Value>> for Binding<Value>
Source§impl<Value> MutableBound for Binding<Value>
impl<Value> MutableBound for Binding<Value>
Auto Trait Implementations§
impl<Value> Freeze for Binding<Value>
impl<Value> RefUnwindSafe for Binding<Value>
impl<Value> Send for Binding<Value>where
Value: Send,
impl<Value> Sync for Binding<Value>where
Value: Send,
impl<Value> Unpin for Binding<Value>
impl<Value> UnwindSafe for Binding<Value>
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<TBinding> BoundValueComputeExt for TBinding
impl<TBinding> BoundValueComputeExt for TBinding
Source§impl<TBinding> BoundValueMapExt for TBinding
impl<TBinding> BoundValueMapExt for TBinding
type Value = <TBinding as Bound>::Value
Source§fn map_binding<TMapValue, TMapFn>(
&self,
map_fn: TMapFn,
) -> MapBinding<TBinding, TMapValue, TMapFn>
fn map_binding<TMapValue, TMapFn>( &self, map_fn: TMapFn, ) -> MapBinding<TBinding, TMapValue, TMapFn>
Transforms the value of this binding using a mapping function Read more