Skip to main content

Action

Trait Action 

Source
pub trait Action:
    Debug
    + Clone
    + 'static {
    // Required method
    fn label(&self) -> &'static str;
}
Expand description

Marker trait for an action space element.

Actions are the choices available to the decision-maker. Each action has a static label for evidence logging.

Required Methods§

Source

fn label(&self) -> &'static str

Human-readable label for JSONL evidence (e.g., “dirty_rows”).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§