pub struct KernelDecision { /* private fields */ }Expand description
Kernel decision (μ(O) → A)
Implementations§
Source§impl KernelDecision
impl KernelDecision
Sourcepub fn with_observation(self, obs: Observation) -> Self
pub fn with_observation(self, obs: Observation) -> Self
Add an observation
Sourcepub fn with_action(self, action: KernelAction) -> Self
pub fn with_action(self, action: KernelAction) -> Self
Add an action
Sourcepub fn decision_id(&self) -> &str
pub fn decision_id(&self) -> &str
Get decision ID
Sourcepub fn observations(&self) -> &[Observation]
pub fn observations(&self) -> &[Observation]
Get observations
Sourcepub fn actions(&self) -> &[KernelAction]
pub fn actions(&self) -> &[KernelAction]
Get actions
Sourcepub fn timing(&self) -> &TimingMeasurement
pub fn timing(&self) -> &TimingMeasurement
Get timing
Sourcepub fn with_determinism_hash(self, hash: String) -> Self
pub fn with_determinism_hash(self, hash: String) -> Self
Set determinism hash
Sourcepub fn determinism_hash(&self) -> Option<&str>
pub fn determinism_hash(&self) -> Option<&str>
Get determinism hash
Trait Implementations§
Source§impl Clone for KernelDecision
impl Clone for KernelDecision
Source§fn clone(&self) -> KernelDecision
fn clone(&self) -> KernelDecision
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 KernelDecision
impl Debug for KernelDecision
Source§impl Default for KernelDecision
impl Default for KernelDecision
Source§impl<'de> Deserialize<'de> for KernelDecision
impl<'de> Deserialize<'de> for KernelDecision
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 KernelDecision
impl RefUnwindSafe for KernelDecision
impl Send for KernelDecision
impl Sync for KernelDecision
impl Unpin for KernelDecision
impl UnwindSafe for KernelDecision
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