pub struct BindingDependencies { /* private fields */ }Expand description
Represents the dependencies of a binding context
Implementations§
Source§impl BindingDependencies
impl BindingDependencies
Sourcepub fn new() -> BindingDependencies
pub fn new() -> BindingDependencies
Creates a new binding dependencies object
Sourcepub fn add_dependency<TChangeable: Changeable + 'static>(
&mut self,
dependency: TChangeable,
)
pub fn add_dependency<TChangeable: Changeable + 'static>( &mut self, dependency: TChangeable, )
Adds a new dependency to this object
Sourcepub fn when_changed_if_unchanged(
&self,
what: Arc<dyn Notifiable>,
) -> Option<Box<dyn Releasable>>
pub fn when_changed_if_unchanged( &self, what: Arc<dyn Notifiable>, ) -> Option<Box<dyn Releasable>>
If the dependencies have not changed since they were registered, registers for changes
and returns a Releasable. If the dependencies are already different, returns None.
Trait Implementations§
Source§impl Changeable for BindingDependencies
impl Changeable for BindingDependencies
Source§fn when_changed(&self, what: Arc<dyn Notifiable>) -> Box<dyn Releasable>
fn when_changed(&self, what: Arc<dyn Notifiable>) -> Box<dyn Releasable>
Supplies a function to be notified when this item is changed Read more
Source§impl Clone for BindingDependencies
impl Clone for BindingDependencies
Source§fn clone(&self) -> BindingDependencies
fn clone(&self) -> BindingDependencies
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BindingDependencies
impl !RefUnwindSafe for BindingDependencies
impl !Send for BindingDependencies
impl !Sync for BindingDependencies
impl Unpin for BindingDependencies
impl !UnwindSafe for BindingDependencies
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more