#[repr(align(64))]pub struct AgentState {
pub position: [f32; 3],
pub velocity: [f32; 3],
pub acceleration: [f32; 3],
pub energy: f32,
pub active: bool,
pub parameters: AlignedVector,
pub last_update_ns: u128,
pub performance_score: f32,
pub debug_info: String,
pub creation_time: Instant,
/* private fields */
}Expand description
Cache-optimized agent state structure
Fields§
§position: [f32; 3]§velocity: [f32; 3]§acceleration: [f32; 3]§energy: f32§active: bool§parameters: AlignedVector§last_update_ns: u128§performance_score: f32§debug_info: String§creation_time: InstantImplementations§
Source§impl AgentState
impl AgentState
Auto Trait Implementations§
impl Freeze for AgentState
impl RefUnwindSafe for AgentState
impl Send for AgentState
impl Sync for AgentState
impl Unpin for AgentState
impl UnwindSafe for AgentState
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
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.