pub struct InvalidTransitiveDependency(/* private fields */);
Expand description
An error that can be returned during “world elaboration” during various
Resolve
operations.
Methods on Resolve
which mutate its internals, such as
Resolve::push_dir
or Resolve::importize
can fail if world
imports
in WIT packages are invalid. This error indicates one of these situations
where an invalid dependency graph between imports and exports are detected.
Note that at this time this error is subtle and not easy to understand, and work needs to be done to explain this better and additionally provide a better error message. For now though this type enables callers to test for the exact kind of error emitted.
Trait Implementations§
Source§impl Clone for InvalidTransitiveDependency
impl Clone for InvalidTransitiveDependency
Source§fn clone(&self) -> InvalidTransitiveDependency
fn clone(&self) -> InvalidTransitiveDependency
Returns a copy 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 InvalidTransitiveDependency
impl Debug for InvalidTransitiveDependency
Source§impl Error for InvalidTransitiveDependency
impl Error for InvalidTransitiveDependency
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()
Auto Trait Implementations§
impl Freeze for InvalidTransitiveDependency
impl RefUnwindSafe for InvalidTransitiveDependency
impl Send for InvalidTransitiveDependency
impl Sync for InvalidTransitiveDependency
impl Unpin for InvalidTransitiveDependency
impl UnwindSafe for InvalidTransitiveDependency
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