Struct flo_binding::BindRef [−][src]
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]
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<dyn Notifiable>) -> Box<dyn Releasable>[src]
impl<Value> Clone for BindRef<Value>[src]
fn clone(&self) -> Self[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[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]
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<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<Value: 'static + Clone + Send + PartialEq> From<StreamBinding<Value>> for BindRef<Value>[src]
fn from(val: StreamBinding<Value>) -> Self[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> 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.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,