pub enum SimulationBuildError {
DuplicateEntityId(EntityId),
EventReferencesUnknownEntity(EventId, EntityId),
RelationshipReferencesUnknownEntity(RelationshipId, EntityId),
SelfRelationship(EntityId),
}Expand description
Error type for simulation build failures.
Variants§
DuplicateEntityId(EntityId)
An entity was added with a duplicate ID.
EventReferencesUnknownEntity(EventId, EntityId)
An event references an entity that doesn’t exist in the simulation. Contains the event ID and the unknown entity ID.
RelationshipReferencesUnknownEntity(RelationshipId, EntityId)
A relationship references an entity that doesn’t exist in the simulation. Contains the relationship ID and the unknown entity ID.
SelfRelationship(EntityId)
A relationship between an entity and itself was attempted.
Trait Implementations§
Source§impl Clone for SimulationBuildError
impl Clone for SimulationBuildError
Source§fn clone(&self) -> SimulationBuildError
fn clone(&self) -> SimulationBuildError
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 SimulationBuildError
impl Debug for SimulationBuildError
Source§impl Display for SimulationBuildError
impl Display for SimulationBuildError
Source§impl Error for SimulationBuildError
impl Error for SimulationBuildError
1.30.0 · 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 SimulationBuildError
impl PartialEq for SimulationBuildError
impl Eq for SimulationBuildError
impl StructuralPartialEq for SimulationBuildError
Auto Trait Implementations§
impl Freeze for SimulationBuildError
impl RefUnwindSafe for SimulationBuildError
impl Send for SimulationBuildError
impl Sync for SimulationBuildError
impl Unpin for SimulationBuildError
impl UnwindSafe for SimulationBuildError
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