Struct flo_binding::binding_context::BindingContext [−][src]
pub struct BindingContext { /* fields omitted */ }
Represents a binding context. Binding contexts are per-thread structures, used to track
Methods
impl BindingContext
[src]
impl BindingContext
pub fn current() -> Option<BindingContext>
[src]
pub fn current() -> Option<BindingContext>
Gets the active binding context
pub fn panic_if_in_binding_context(msg: &str)
[src]
pub fn panic_if_in_binding_context(msg: &str)
Panics if we're trying to create a binding, with a particular message
pub fn bind<TResult, TFn>(to_do: TFn) -> (TResult, BindingDependencies) where
TFn: FnOnce() -> TResult,
[src]
pub fn bind<TResult, TFn>(to_do: TFn) -> (TResult, BindingDependencies) where
TFn: FnOnce() -> TResult,
Executes a function in a new binding context
pub fn out_of_context<TResult, TFn>(to_do: TFn) -> TResult where
TFn: FnOnce() -> TResult,
[src]
pub fn out_of_context<TResult, TFn>(to_do: TFn) -> TResult where
TFn: FnOnce() -> TResult,
Performs an action outside of the binding context (dependencies will not be tracked for anything the supplied function does)
pub fn add_dependency<TChangeable: Changeable + 'static>(
dependency: TChangeable
)
[src]
pub fn add_dependency<TChangeable: Changeable + 'static>(
dependency: TChangeable
)
Adds a dependency to the current context (if one is found)
Trait Implementations
impl Clone for BindingContext
[src]
impl Clone for BindingContext
fn clone(&self) -> BindingContext
[src]
fn clone(&self) -> BindingContext
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !Send for BindingContext
impl !Send for BindingContext
impl !Sync for BindingContext
impl !Sync for BindingContext