[][src]Trait goko::plugins::GokoPlugin

pub trait GokoPlugin<D: PointCloud>: Send + Sync + Debug + Clone + 'static {
    type NodeComponent: NodePlugin<D> + Clone + 'static;
    fn node_component(
        parameters: &Self,
        my_node: &CoverNode<D>,
        my_node: &CoverTreeReader<D>
    ) -> Option<Self::NodeComponent>; fn prepare_tree(_parameters: &Self, _my_tree: &mut CoverTreeWriter<D>) { ... } }

Parent trait that make this all work. Ideally this should be included in the TreePlugin but rust doesn't like it.

Associated Types

type NodeComponent: NodePlugin<D> + Clone + 'static[src]

The node component of this plugin, these are attached to each node recursively when the plug in is attached to the tree.

Loading content...

Required methods

fn node_component(
    parameters: &Self,
    my_node: &CoverNode<D>,
    my_node: &CoverTreeReader<D>
) -> Option<Self::NodeComponent>
[src]

The function that actually builds the node components.

Loading content...

Provided methods

fn prepare_tree(_parameters: &Self, _my_tree: &mut CoverTreeWriter<D>)[src]

This is called just before we build the tree to prepare it for the upcomming plugin creations.

Loading content...

Implementors

impl<D: PointCloud + LabeledCloud> GokoPlugin<D> for LabelSummaryPlugin[src]

type NodeComponent = NodeLabelSummary<D::LabelSummary>

impl<D: PointCloud + MetaCloud> GokoPlugin<D> for MetaSummaryPlugin[src]

type NodeComponent = NodeMetaSummary<D::MetaSummary>

impl<D: PointCloud> GokoPlugin<D> for GokoCategorical[src]

Parent trait that make this all work. Ideally this should be included in the TreePlugin but rust doesn't like it.

type NodeComponent = Categorical

impl<D: PointCloud> GokoPlugin<D> for GokoDirichlet[src]

Parent trait that make this all work. Ideally this should be included in the TreePlugin but rust doesn't like it.

type NodeComponent = Dirichlet

impl<D: PointCloud> GokoPlugin<D> for GokoDiagGaussian[src]

type NodeComponent = DiagGaussian

impl<D: PointCloud> GokoPlugin<D> for GokoCoverageIndexes[src]

type NodeComponent = CoverageIndexes

Loading content...