[−][src]Struct flo_binding::BindRef
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> Changeable for BindRef<Value>
[src]
fn when_changed(&self, what: Arc<dyn Notifiable>) -> Box<dyn Releasable>
[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]
TFn: 'static + Send + Sync + Fn() -> Value,
fn from(val: ComputedBinding<Value, TFn>) -> Self
[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]
TFn: 'static + Send + Sync + Fn() -> Value,
fn from(val: &'a ComputedBinding<Value, TFn>) -> Self
[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]
fn from(val: StreamBinding<Value>) -> Self
[src]
impl<Value> Clone for BindRef<Value>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,