pub struct ReflectError {
pub path: Path,
pub kind: ReflectErrorKind,
}Expand description
Error that occurred during reflection, with path context.
Fields§
§path: PathPath through the type structure where the error occurred.
kind: ReflectErrorKindThe specific kind of error.
Implementations§
Source§impl ReflectError
impl ReflectError
Sourcepub fn new(kind: ReflectErrorKind, path: Path) -> Self
pub fn new(kind: ReflectErrorKind, path: Path) -> Self
Create a new ReflectError with path context.
Trait Implementations§
Source§impl Clone for ReflectError
impl Clone for ReflectError
Source§fn clone(&self) -> ReflectError
fn clone(&self) -> ReflectError
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 ReflectError
impl Debug for ReflectError
Source§impl Display for ReflectError
impl Display for ReflectError
Source§impl Error for ReflectError
impl Error for ReflectError
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 From<AllocError> for ReflectError
impl From<AllocError> for ReflectError
Source§fn from(e: AllocError) -> Self
fn from(e: AllocError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ReflectError
impl RefUnwindSafe for ReflectError
impl Send for ReflectError
impl Sync for ReflectError
impl Unpin for ReflectError
impl UnsafeUnpin for ReflectError
impl UnwindSafe for ReflectError
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