pub trait TreeNodeCollectionImpl {
// Required method
fn initialize(
&self,
this: &TreeNodeCollection,
nodes: &FerroList<Rc<TreeNode>>,
);
// Provided method
fn dispose(&self, this: &TreeNodeCollection) { ... }
}Expand description
The members a kind of TreeNodeCollection overrides: the abstract
Initialize and the virtual Dispose of the original.
Required Methods§
Sourcefn initialize(&self, this: &TreeNodeCollection, nodes: &FerroList<Rc<TreeNode>>)
fn initialize(&self, this: &TreeNodeCollection, nodes: &FerroList<Rc<TreeNode>>)
protected abstract void Initialize(FerroList<TreeNode> nodes):
fills nodes and keeps them up to date. Called once, when the
collection is first used.
Provided Methods§
Sourcefn dispose(&self, this: &TreeNodeCollection)
fn dispose(&self, this: &TreeNodeCollection)
public virtual void Dispose(). The base implementation disposes the
nodes (TreeNodeCollection::base_dispose); an override calls it
where the original calls base.Dispose().
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".