Struct ai_kit::pedigree::Pedigree
[−]
[src]
pub struct Pedigree { /* fields omitted */ }
Methods
impl Pedigree
[src]
fn new() -> Self
fn insert(&self, id: String, org: Origin) -> Self
fn insert_mut(&mut self, id: String, org: Origin)
fn get_ancestor(&self, id: &String) -> Option<&Origin>
fn get_descendents(&self, id: &String) -> Option<&BTreeSet<String>>
fn purge(&self, id: &String) -> Self
Remove all reference to the specified id
fn purge_mut(&mut self, id: &String)
fn extract_inference_chain(&self, root: &String) -> InferenceChain
fn extract_inference_graph(&self, root: &String) -> InferenceGraph
fn render_inference_tree(
&self,
d_id: &String,
root_renderer: &Fn(String) -> String,
node_renderer: &Fn(String) -> String,
relation_renderder: &Fn(String, String) -> String,
render_type: RenderType
) -> String
&self,
d_id: &String,
root_renderer: &Fn(String) -> String,
node_renderer: &Fn(String) -> String,
relation_renderder: &Fn(String, String) -> String,
render_type: RenderType
) -> String
fn render_inference_tree_full(
&self,
d_id: &String,
node_renderer: &Fn(String) -> String,
relation_renderder: &Fn(String, String) -> String
) -> String
&self,
d_id: &String,
node_renderer: &Fn(String) -> String,
relation_renderder: &Fn(String, String) -> String
) -> String
fn render_inference_tree_pedigree(
&self,
d_id: &String,
node_renderer: &Fn(String) -> String
) -> String
&self,
d_id: &String,
node_renderer: &Fn(String) -> String
) -> String
Trait Implementations
impl Clone for Pedigree
[src]
fn clone(&self) -> Pedigree
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more