pub struct SceneError {
pub path: Vec<String>,
pub message: String,
}Expand description
A structured scene validation diagnostic: where the problem is and what it
is. path is a human-readable address into the scene tree (for example
nodes[0].kind); message describes the violation.
Fields§
§path: Vec<String>Address into the scene tree, outermost segment first.
message: StringHuman-readable description of the violation.
Implementations§
Source§impl SceneError
impl SceneError
Sourcepub fn path_string(&self) -> String
pub fn path_string(&self) -> String
Render the path as a dotted/indexed address, or <root> when empty.
Trait Implementations§
Source§impl Clone for SceneError
impl Clone for SceneError
Source§fn clone(&self) -> SceneError
fn clone(&self) -> SceneError
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 SceneError
impl Debug for SceneError
Source§impl Display for SceneError
impl Display for SceneError
impl Eq for SceneError
Source§impl PartialEq for SceneError
impl PartialEq for SceneError
Source§fn eq(&self, other: &SceneError) -> bool
fn eq(&self, other: &SceneError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SceneError
Auto Trait Implementations§
impl Freeze for SceneError
impl RefUnwindSafe for SceneError
impl Send for SceneError
impl Sync for SceneError
impl Unpin for SceneError
impl UnsafeUnpin for SceneError
impl UnwindSafe for SceneError
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