Enum BrainMemory
#[non_exhaustive]pub enum BrainMemory {
WalkTarget,
LookTarget,
AttackTarget,
}Expand description
A memory the ported brains keep, as BrainMemoryType names vanilla’s.
What a species’ brain does not keep answers absent.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
WalkTarget
WALK_TARGET: where the mob walks, how fast, how close is there.
LookTarget
LOOK_TARGET: what the mob looks at.
AttackTarget
ATTACK_TARGET: what the mob attacks.
Trait Implementations§
§impl Clone for BrainMemory
impl Clone for BrainMemory
§fn clone(&self) -> BrainMemory
fn clone(&self) -> BrainMemory
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 moreimpl Copy for BrainMemory
§impl Debug for BrainMemory
impl Debug for BrainMemory
impl Eq for BrainMemory
§impl Hash for BrainMemory
impl Hash for BrainMemory
§impl PartialEq for BrainMemory
impl PartialEq for BrainMemory
impl StructuralPartialEq for BrainMemory
Auto Trait Implementations§
impl Freeze for BrainMemory
impl RefUnwindSafe for BrainMemory
impl Send for BrainMemory
impl Sync for BrainMemory
impl Unpin for BrainMemory
impl UnsafeUnpin for BrainMemory
impl UnwindSafe for BrainMemory
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