pub struct DigesterState {
pub id: AgentId,
pub position: Position,
pub age_ticks: u64,
pub idle_ticks: u64,
pub useful_outputs: u64,
pub all_presentations: Vec<String>,
pub known_vocabulary: Vec<String>,
pub has_exported: bool,
pub boundary_permeability: f64,
pub max_idle_ticks: u64,
pub sense_radius: f64,
}Expand description
Serializable state for a Digester agent.
Fields§
§id: AgentId§position: Position§age_ticks: u64§idle_ticks: u64§useful_outputs: u64§all_presentations: Vec<String>§known_vocabulary: Vec<String>§has_exported: bool§boundary_permeability: f64§max_idle_ticks: u64§sense_radius: f64Trait Implementations§
Source§impl Clone for DigesterState
impl Clone for DigesterState
Source§fn clone(&self) -> DigesterState
fn clone(&self) -> DigesterState
Returns a duplicate of the value. Read more
1.0.0 · 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 DigesterState
impl Debug for DigesterState
Source§impl<'de> Deserialize<'de> for DigesterState
impl<'de> Deserialize<'de> for DigesterState
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 DigesterState
impl RefUnwindSafe for DigesterState
impl Send for DigesterState
impl Sync for DigesterState
impl Unpin for DigesterState
impl UnwindSafe for DigesterState
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