pub struct DialogueAnalyzer {
pub tree_id: String,
pub speaker_word_counts: HashMap<String, usize>,
pub speaker_node_counts: HashMap<String, usize>,
pub choice_counts_per_node: Vec<(u64, usize)>,
pub longest_path: Vec<u64>,
pub shortest_path_to_end: Vec<u64>,
pub dead_ends: Vec<u64>,
pub orphan_nodes: Vec<u64>,
}Fields§
§tree_id: String§speaker_word_counts: HashMap<String, usize>§speaker_node_counts: HashMap<String, usize>§choice_counts_per_node: Vec<(u64, usize)>§longest_path: Vec<u64>§shortest_path_to_end: Vec<u64>§dead_ends: Vec<u64>§orphan_nodes: Vec<u64>Implementations§
Source§impl DialogueAnalyzer
impl DialogueAnalyzer
pub fn analyze(tree: &DialogueTree) -> Self
pub fn get_speaker_stats(&self) -> Vec<(String, usize, usize)>
pub fn generate_report(&self) -> String
Trait Implementations§
Source§impl Clone for DialogueAnalyzer
impl Clone for DialogueAnalyzer
Auto Trait Implementations§
impl Freeze for DialogueAnalyzer
impl RefUnwindSafe for DialogueAnalyzer
impl Send for DialogueAnalyzer
impl Sync for DialogueAnalyzer
impl Unpin for DialogueAnalyzer
impl UnsafeUnpin for DialogueAnalyzer
impl UnwindSafe for DialogueAnalyzer
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.