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.

Implementations

impl<Value> BindRef<Value>[src]

pub fn new<Binding: 'static + Clone + Bound<Value>>(
    binding: &Binding
) -> BindRef<Value>
[src]

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]

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]

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

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

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

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

impl<'a, Value: 'static + Clone + PartialEq + Send + Into<Binding<Value>>> From<&'a 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]

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

Auto Trait Implementations

impl<Target> !RefUnwindSafe for BindRef<Target>[src]

impl<Target> Send for BindRef<Target>[src]

impl<Target> Sync for BindRef<Target>[src]

impl<Target> Unpin for BindRef<Target>[src]

impl<Target> !UnwindSafe for BindRef<Target>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.