pub enum SceneError {
UnknownMesh,
UnknownField,
UnknownSection,
StaleBvh(MeshId),
InvalidInput(&'static str),
StepNotOpen,
Corrupted,
Store(StoreError),
Bvh(BvhError),
Query(QueryError),
Fields(FieldsError),
Ops(OpsError),
}Expand description
Why a scene operation could not run. A failed operation leaves the scene unchanged.
Variants§
UnknownMesh
The id is stale: its mesh was removed.
UnknownField
The field id is unknown: the field was removed, by hand or with the mesh it was on or measured to.
UnknownSection
The section id is unknown: the section was removed.
StaleBvh(MeshId)
The mesh’s BVH is out of date and its update mode forbids updating it implicitly.
InvalidInput(&'static str)
An argument was invalid (non-finite, not a rotation and so on).
StepNotOpen
There is no open history step to end or cancel.
Corrupted
An internal invariant was found broken.
Store(StoreError)
The mesh store reported an error (including OutOfMemory).
Bvh(BvhError)
The BVH reported an error (including OutOfMemory).
Query(QueryError)
A query reported an error (including OutOfMemory).
Fields(FieldsError)
A field kernel reported an error (including OutOfMemory).
Ops(OpsError)
A repair operation run through Scene::edit
failed (including OutOfMemory).
Trait Implementations§
Source§impl Clone for SceneError
impl Clone for SceneError
Source§fn clone(&self) -> SceneError
fn clone(&self) -> SceneError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SceneError
impl Debug for SceneError
Source§impl Display for SceneError
impl Display for SceneError
impl Eq for SceneError
Source§impl Error for SceneError
impl Error for SceneError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()