pub struct ScenarioReport { /* private fields */ }Expand description
Aggregate result of a Scenario::run_agents call.
Implementations§
Source§impl ScenarioReport
impl ScenarioReport
Sourcepub fn outcomes(&self) -> &[AgentOutcome]
pub fn outcomes(&self) -> &[AgentOutcome]
Per-agent outcomes, indexed by agent position.
Sourcepub fn all_ok(&self) -> bool
pub fn all_ok(&self) -> bool
Whether every agent returned Ok.
Reports returned by Scenario::run_agents always satisfy this; the
method remains useful for code that receives a report abstractly.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ScenarioReport
impl !UnwindSafe for ScenarioReport
impl Freeze for ScenarioReport
impl Send for ScenarioReport
impl Sync for ScenarioReport
impl Unpin for ScenarioReport
impl UnsafeUnpin for ScenarioReport
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