Struct flo_binding::BindRef
source · [−]pub struct BindRef<Target> { /* private fields */ }
Expand description
A BindRef
references another binding without needing to know precisely
what kind of binding it is. It is read-only, so mostly useful for passing
a binding around, particularly for computed bindings. Create one with
BindRef::from(binding)
.
Cloning a BindRef
will create another reference to the same binding.
Implementations
Trait Implementations
sourceimpl<Value> Changeable for BindRef<Value>
impl<Value> Changeable for BindRef<Value>
sourcefn 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
sourceimpl<'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>
sourceimpl<'a, Value: 'static + Clone + PartialEq + Send, TFn> From<&'a ComputedBinding<Value, TFn>> for BindRef<Value> where
TFn: 'static + Send + Sync + Fn() -> Value,
impl<'a, Value: 'static + Clone + PartialEq + Send, TFn> From<&'a ComputedBinding<Value, TFn>> for BindRef<Value> where
TFn: 'static + Send + Sync + Fn() -> Value,
sourcefn from(val: &'a ComputedBinding<Value, TFn>) -> Self
fn from(val: &'a ComputedBinding<Value, TFn>) -> Self
Converts to this type from the input type.
sourceimpl<'a, Value: 'static + Clone + PartialEq + Send + Into<Binding<Value>>> From<&'a Value> for BindRef<Value>
impl<'a, Value: 'static + Clone + PartialEq + Send + Into<Binding<Value>>> From<&'a Value> for BindRef<Value>
sourceimpl<Value: 'static + Clone + PartialEq + Send, TFn> From<ComputedBinding<Value, TFn>> for BindRef<Value> where
TFn: 'static + Send + Sync + Fn() -> Value,
impl<Value: 'static + Clone + PartialEq + Send, TFn> From<ComputedBinding<Value, TFn>> for BindRef<Value> where
TFn: 'static + Send + Sync + Fn() -> Value,
sourcefn from(val: ComputedBinding<Value, TFn>) -> Self
fn from(val: ComputedBinding<Value, TFn>) -> Self
Converts to this type from the input type.
sourceimpl<Value: 'static + Clone + Send + PartialEq> From<StreamBinding<Value>> for BindRef<Value>
impl<Value: 'static + Clone + Send + PartialEq> From<StreamBinding<Value>> for BindRef<Value>
sourcefn from(val: StreamBinding<Value>) -> Self
fn from(val: StreamBinding<Value>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl<Target> !RefUnwindSafe for BindRef<Target>
impl<Target> Send for BindRef<Target>
impl<Target> Sync for BindRef<Target>
impl<Target> Unpin for BindRef<Target>
impl<Target> !UnwindSafe for BindRef<Target>
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