pub enum LinkSource {
Literal(Value),
Variable(Uuid),
Port(Port),
}Expand description
Where the value feeding a Link’s target comes from.
Generalizes the behavior tree’s Expression link kinds (a literal value, a
shared blackboard variable, or another node’s slot). Full expression links
(arithmetic over sources) are deferred — proposal Q-D.
Variants§
Literal(Value)
A constant value.
Variable(Uuid)
A shared blackboard variable, by id — the interpreter resolves it to a store slot (or a tree-local cell) at build time.
Port(Port)
Another node’s slot: the output/port the link reads from. Generalizes
Expression::NodeArgument.
Trait Implementations§
Source§impl Clone for LinkSource
impl Clone for LinkSource
Source§fn clone(&self) -> LinkSource
fn clone(&self) -> LinkSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LinkSource
impl Debug for LinkSource
Source§impl<'de> Deserialize<'de> for LinkSource
impl<'de> Deserialize<'de> for LinkSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LinkSource
impl PartialEq for LinkSource
Source§fn eq(&self, other: &LinkSource) -> bool
fn eq(&self, other: &LinkSource) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LinkSource
impl Serialize for LinkSource
impl StructuralPartialEq for LinkSource
Auto Trait Implementations§
impl Freeze for LinkSource
impl RefUnwindSafe for LinkSource
impl Send for LinkSource
impl Sync for LinkSource
impl Unpin for LinkSource
impl UnsafeUnpin for LinkSource
impl UnwindSafe for LinkSource
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