pub struct CollectionNodeBase { /* private fields */ }Expand description
The part shared by nodes that read from a collection: following the collection change and property change notifications of the source.
Implementations§
Source§impl CollectionNodeBase
impl CollectionNodeBase
pub fn new() -> Self
Sourcepub fn on_source_changed<N: CollectionNode>(
this: &Weak<N>,
node: &N,
source: Option<&BoxedValue>,
)
pub fn on_source_changed<N: CollectionNode>( this: &Weak<N>, node: &N, source: Option<&BoxedValue>, )
Subscribes node to the new source and updates its value.
Sourcepub fn unsubscribe(&self, source: &BoxedValue)
pub fn unsubscribe(&self, source: &BoxedValue)
Unsubscribes from the previous source.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for CollectionNodeBase
impl !RefUnwindSafe for CollectionNodeBase
impl !Sync for CollectionNodeBase
impl Send for CollectionNodeBase
impl Unpin for CollectionNodeBase
impl UnsafeUnpin for CollectionNodeBase
impl UnwindSafe for CollectionNodeBase
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more