pub struct ScenarioSet<T> { /* private fields */ }Expand description
Named alternatives with no implied time order.
Implementations§
Source§impl<T> ScenarioSet<T>
impl<T> ScenarioSet<T>
pub fn new(scenarios: Vec<Scenario<T>>) -> Result<Self, Error>
Sourcepub fn get(&self, id: &str) -> Option<&Scenario<T>>
pub fn get(&self, id: &str) -> Option<&Scenario<T>>
Look one scenario up by its stable ID. Constant time: IDs are case sensitive and never normalized, and the index is built once.
pub fn iter(&self) -> impl ExactSizeIterator<Item = &Scenario<T>>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl<T> Clone for ScenarioSet<T>
impl<T> Clone for ScenarioSet<T>
Auto Trait Implementations§
impl<T> Freeze for ScenarioSet<T>
impl<T> RefUnwindSafe for ScenarioSet<T>where
T: RefUnwindSafe,
impl<T> Send for ScenarioSet<T>
impl<T> Sync for ScenarioSet<T>
impl<T> Unpin for ScenarioSet<T>
impl<T> UnsafeUnpin for ScenarioSet<T>
impl<T> UnwindSafe for ScenarioSet<T>where
T: RefUnwindSafe,
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