Struct reactive_graph::graph::AnySource
source · pub struct AnySource(pub usize, pub Weak<dyn Source + Send + Sync>);Tuple Fields§
§0: usize§1: Weak<dyn Source + Send + Sync>Trait Implementations§
source§impl PartialEq for AnySource
impl PartialEq for AnySource
source§impl ReactiveNode for AnySource
impl ReactiveNode for AnySource
source§fn mark_dirty(&self)
fn mark_dirty(&self)
Notifies the source’s dependencies that it has changed.
source§fn mark_subscribers_check(&self)
fn mark_subscribers_check(&self)
Marks that all subscribers need to be checked.
source§fn update_if_necessary(&self) -> bool
fn update_if_necessary(&self) -> bool
Regenerates the value for this node, if needed, and returns whether
it has actually changed or not.
source§fn mark_check(&self)
fn mark_check(&self)
Notifies the source’s dependencies that it may have changed.
source§impl Source for AnySource
impl Source for AnySource
source§fn add_subscriber(&self, subscriber: AnySubscriber)
fn add_subscriber(&self, subscriber: AnySubscriber)
Adds a subscriber to this source’s list of dependencies.
source§fn remove_subscriber(&self, subscriber: &AnySubscriber)
fn remove_subscriber(&self, subscriber: &AnySubscriber)
Removes a subscriber from this source’s list of dependencies.
source§fn clear_subscribers(&self)
fn clear_subscribers(&self)
Remove all subscribers from this source’s list of dependencies.
source§impl ToAnySource for AnySource
impl ToAnySource for AnySource
source§fn to_any_source(&self) -> AnySource
fn to_any_source(&self) -> AnySource
Converts this type to its type-erased equivalent.
impl Eq for AnySource
Auto Trait Implementations§
impl Freeze for AnySource
impl !RefUnwindSafe for AnySource
impl Send for AnySource
impl Sync for AnySource
impl Unpin for AnySource
impl !UnwindSafe for AnySource
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