pub struct BehaviorLocal {
pub name: String,
pub value: BehaviorLiteral,
}Expand description
A per-entity state slot declared by a Behavior. The declared value fixes both the slot’s type and its starting value.
Fields§
§name: StringThe name nodes read the slot by.
value: BehaviorLiteralThe slot’s type and starting value.
Trait Implementations§
Source§impl Clone for BehaviorLocal
impl Clone for BehaviorLocal
Source§fn clone(&self) -> BehaviorLocal
fn clone(&self) -> BehaviorLocal
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 BehaviorLocal
impl Debug for BehaviorLocal
Source§impl Default for BehaviorLocal
impl Default for BehaviorLocal
Source§fn default() -> BehaviorLocal
fn default() -> BehaviorLocal
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BehaviorLocalwhere
BehaviorLocal: Default,
impl<'de> Deserialize<'de> for BehaviorLocalwhere
BehaviorLocal: Default,
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
Auto Trait Implementations§
impl Freeze for BehaviorLocal
impl RefUnwindSafe for BehaviorLocal
impl Send for BehaviorLocal
impl Sync for BehaviorLocal
impl Unpin for BehaviorLocal
impl UnsafeUnpin for BehaviorLocal
impl UnwindSafe for BehaviorLocal
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