pub struct ClosestPkgJsonError(pub Box<ClosestPkgJsonErrorKind>);Tuple Fields§
§0: Box<ClosestPkgJsonErrorKind>Implementations§
Source§impl ClosestPkgJsonError
impl ClosestPkgJsonError
pub fn as_kind(&self) -> &ClosestPkgJsonErrorKind
pub fn into_kind(self) -> ClosestPkgJsonErrorKind
Trait Implementations§
Source§impl Debug for ClosestPkgJsonError
impl Debug for ClosestPkgJsonError
Source§impl Deref for ClosestPkgJsonError
impl Deref for ClosestPkgJsonError
Source§impl Display for ClosestPkgJsonError
impl Display for ClosestPkgJsonError
Source§impl Error for ClosestPkgJsonError
impl Error for ClosestPkgJsonError
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<ClosestPkgJsonError> for PackageResolveErrorKind
impl From<ClosestPkgJsonError> for PackageResolveErrorKind
Source§fn from(source: ClosestPkgJsonError) -> Self
fn from(source: ClosestPkgJsonError) -> Self
Converts to this type from the input type.
Source§impl<E> From<E> for ClosestPkgJsonErrorwhere
ClosestPkgJsonErrorKind: From<E>,
impl<E> From<E> for ClosestPkgJsonErrorwhere
ClosestPkgJsonErrorKind: From<E>,
Source§impl NodeJsErrorCoded for ClosestPkgJsonError
impl NodeJsErrorCoded for ClosestPkgJsonError
fn code(&self) -> NodeJsErrorCode
Auto Trait Implementations§
impl Freeze for ClosestPkgJsonError
impl !RefUnwindSafe for ClosestPkgJsonError
impl Send for ClosestPkgJsonError
impl Sync for ClosestPkgJsonError
impl Unpin for ClosestPkgJsonError
impl !UnwindSafe for ClosestPkgJsonError
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