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]

[src]

Creates a new BindRef from a reference to an existing binding

[src]

Creates a new BindRef from an existing binding

Trait Implementations

impl<Value> Bound<Value> for BindRef<Value>
[src]

[src]

Retrieves the value stored by this binding Read more

impl<Value> Changeable for BindRef<Value>
[src]

[src]

Supplies a function to be notified when this item is changed Read more

impl<Value> Clone for BindRef<Value>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a, Value> From<&'a BindRef<Value>> for BindRef<Value>
[src]

[src]

Performs the conversion.

impl<Value: 'static + Clone + Send + PartialEq> From<Binding<Value>> for BindRef<Value>
[src]

[src]

Performs the conversion.

impl<Value: 'static + Clone + PartialEq + Send, TFn> From<ComputedBinding<Value, TFn>> for BindRef<Value> where
    TFn: 'static + Send + Sync + Fn() -> Value, 
[src]

[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]

[src]

Performs the conversion.

impl<'a, Value: 'static + Clone + PartialEq + Send + Into<Binding<Value>>> From<&'a Value> for BindRef<Value>
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl<Target> Send for BindRef<Target>

impl<Target> Sync for BindRef<Target>