pub enum SceneProblem {
BinaryResource,
UnknownTag {
at: TextRange,
},
MalformedHeader {
at: TextRange,
},
MissingExtField {
at: TextRange,
},
UnknownExtResource {
id: ExtId,
at: TextRange,
},
MultipleRoots {
roots: Vec<NodeIdx>,
},
NoRoot,
DanglingParent {
node: NodeIdx,
parent_path: SmolStr,
},
}Expand description
A non-fatal problem found during parsing. The parser records these and keeps going — the floor
is always parity with the engine’s Node-everywhere baseline.
Variants§
BinaryResource
A binary .scn/.res (RSRC/RSCC magic) — detected and degraded to an empty model.
UnknownTag
A section tag not in the 8 the engine recognizes — the section was skipped.
MalformedHeader
A bracketed header that could not be lexed — the section was skipped.
MissingExtField
An ext_resource missing a required type/path/id.
UnknownExtResource
A script=/instance= referencing an id with no matching ext_resource.
MultipleRoots
More than one parent-less node (the first is kept as root).
NoRoot
A scene with [node]s but no parent-less node.
DanglingParent
A node whose parent="…" path resolves to no known node.
Trait Implementations§
Source§impl Clone for SceneProblem
impl Clone for SceneProblem
Source§fn clone(&self) -> SceneProblem
fn clone(&self) -> SceneProblem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SceneProblem
impl Debug for SceneProblem
impl Eq for SceneProblem
Source§impl PartialEq for SceneProblem
impl PartialEq for SceneProblem
Source§fn eq(&self, other: &SceneProblem) -> bool
fn eq(&self, other: &SceneProblem) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SceneProblem
Auto Trait Implementations§
impl Freeze for SceneProblem
impl RefUnwindSafe for SceneProblem
impl Send for SceneProblem
impl Sync for SceneProblem
impl Unpin for SceneProblem
impl UnsafeUnpin for SceneProblem
impl UnwindSafe for SceneProblem
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