#[non_exhaustive]pub enum ScenarioError {
MapSize {
entry: usize,
},
TooFewEntries {
available: usize,
},
BlockedCell {
entry: usize,
},
Instance(InstanceError),
}Expand description
Why scenario_instance could not build an instance.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MapSize
Entry entry was made for a map of another size.
TooFewEntries
The scenario has fewer entries than agents were asked for.
BlockedCell
The start or goal of entry entry is a blocked cell.
Instance(InstanceError)
The agents do not form a valid instance.
Trait Implementations§
Source§impl Clone for ScenarioError
impl Clone for ScenarioError
impl Copy for ScenarioError
Source§impl Debug for ScenarioError
impl Debug for ScenarioError
Source§impl Display for ScenarioError
impl Display for ScenarioError
impl Eq for ScenarioError
Source§impl Error for ScenarioError
impl Error for ScenarioError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ScenarioError
impl PartialEq for ScenarioError
impl StructuralPartialEq for ScenarioError
Auto Trait Implementations§
impl Forget for ScenarioError
impl Freeze for ScenarioError
impl Move for ScenarioError
impl RefUnwindSafe for ScenarioError
impl Send for ScenarioError
impl Sync for ScenarioError
impl Unpin for ScenarioError
impl UnsafeUnpin for ScenarioError
impl UnwindSafe for ScenarioError
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