pub struct SignalGraph {
pub nodes: Vec<GraphNode>,
pub edges: Vec<GraphEdge>,
pub skill_tokens: HashMap<String, usize>,
}Fields§
§nodes: Vec<GraphNode>§edges: Vec<GraphEdge>§skill_tokens: HashMap<String, usize>Implementations§
Source§impl SignalGraph
impl SignalGraph
pub fn new() -> Self
pub fn record_skill_outcome(&mut self, skill_id: &str, tokens: usize)
pub fn node_count(&self) -> usize
Trait Implementations§
Source§impl Debug for SignalGraph
impl Debug for SignalGraph
Source§impl Default for SignalGraph
impl Default for SignalGraph
Source§fn default() -> SignalGraph
fn default() -> SignalGraph
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SignalGraph
impl RefUnwindSafe for SignalGraph
impl Send for SignalGraph
impl Sync for SignalGraph
impl Unpin for SignalGraph
impl UnsafeUnpin for SignalGraph
impl UnwindSafe for SignalGraph
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