Struct flo_binding::BindRef
[−]
[src]
pub struct BindRef<Target> { /* fields omitted */ }
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.
Methods
impl<Value> BindRef<Value>
[src]
pub fn new<Binding: 'static + Clone + Bound<Value>>(
binding: &Binding
) -> BindRef<Value>
[src]
binding: &Binding
) -> BindRef<Value>
Creates a new BindRef from a reference to an existing binding
pub fn from_arc<Binding: 'static + Bound<Value>>(
binding_ref: Arc<Binding>
) -> BindRef<Value>
[src]
binding_ref: Arc<Binding>
) -> BindRef<Value>
Creates a new BindRef from an existing binding
Trait Implementations
impl<Value> Bound<Value> for BindRef<Value>
[src]
impl<Value> Changeable for BindRef<Value>
[src]
fn when_changed(&self, what: Arc<Notifiable>) -> Box<Releasable>
[src]
Supplies a function to be notified when this item is changed Read more
impl<Value> Clone for BindRef<Value>
[src]
fn clone(&self) -> Self
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a, Value> From<&'a BindRef<Value>> for BindRef<Value>
[src]
impl<Value: 'static + Clone + Send + PartialEq> From<Binding<Value>> for BindRef<Value>
[src]
impl<Value: 'static + Clone + PartialEq + Send, TFn> From<ComputedBinding<Value, TFn>> for BindRef<Value> where
TFn: 'static + Send + Sync + Fn() -> Value,
[src]
TFn: 'static + Send + Sync + Fn() -> Value,
fn from(val: ComputedBinding<Value, TFn>) -> Self
[src]
Performs the conversion.
impl<'a, Value: 'static + Clone + PartialEq + Send, TFn> From<&'a ComputedBinding<Value, TFn>> for BindRef<Value> where
TFn: 'static + Send + Sync + Fn() -> Value,
[src]
TFn: 'static + Send + Sync + Fn() -> Value,
fn from(val: &'a ComputedBinding<Value, TFn>) -> Self
[src]
Performs the conversion.