[][src]Struct flo_binding::BindRef

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]

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> Changeable for BindRef<Value>[src]

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

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<'a, Value: 'static + Clone + PartialEq + Send> From<&'a 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<'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<StreamBinding<Value>> for BindRef<Value>[src]

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

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<Target> Send for BindRef<Target>

impl<Target> Sync for BindRef<Target>

Blanket Implementations

impl<T, U> Into 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> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.