[−][src]Module zamm_yin::graph::value_wrappers
Wrappers around values associated with nodes in the KB. This differs from the other
wrappers
package because this abstraction only wraps the
values associated with nodes, while the other one wraps the nodes themselves.
Due to Rust restrictions around upcasting to Any, it appears necessary to create an extra wrapper.
Structs
StrongValue | KBValue for owned immutable data. |
WeakValue | KBValue for weak references to data. |
Traits
KBValue | Wrapper for KB values, because Rust doesn't support upcasting at the moment, and the KB should support referring to external data structures that it doesn't own itself. |
Functions
run_closure | Unwrap a StrongValue holding a closure, and return the result after running on the input. |
unwrap_value | Helper function for unwrapping values contained inside a WeakValue. |
Type Definitions
KBClosure | Closure stored inside the KB. |