pub struct TargetValidationReport { /* private fields */ }Expand description
The report of validating a component against a target world.
Implementations§
Source§impl TargetValidationReport
impl TargetValidationReport
Sourcepub fn imports_not_in_target(&self) -> impl Iterator<Item = &str>
pub fn imports_not_in_target(&self) -> impl Iterator<Item = &str>
Returns the set of imports present in the component but not in the target world.
Sourcepub fn missing_exports(&self) -> impl Iterator<Item = (&str, &ItemKind)>
pub fn missing_exports(&self) -> impl Iterator<Item = (&str, &ItemKind)>
Returns the exports not in the component but required by the target world.
Sourcepub fn mismatched_types(
&self,
) -> impl Iterator<Item = (&str, &ExternKind, &Error)>
pub fn mismatched_types( &self, ) -> impl Iterator<Item = (&str, &ExternKind, &Error)>
Returns the mismatched types between the component and the target world.
Trait Implementations§
Source§impl Debug for TargetValidationReport
impl Debug for TargetValidationReport
Source§impl Default for TargetValidationReport
impl Default for TargetValidationReport
Source§fn default() -> TargetValidationReport
fn default() -> TargetValidationReport
Returns the “default value” for a type. Read more
Source§impl Display for TargetValidationReport
impl Display for TargetValidationReport
Source§impl Error for TargetValidationReport
impl Error for TargetValidationReport
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<TargetValidationReport> for TargetValidationResult
impl From<TargetValidationReport> for TargetValidationResult
Source§fn from(report: TargetValidationReport) -> TargetValidationResult
fn from(report: TargetValidationReport) -> TargetValidationResult
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TargetValidationReport
impl RefUnwindSafe for TargetValidationReport
impl Send for TargetValidationReport
impl Sync for TargetValidationReport
impl Unpin for TargetValidationReport
impl UnwindSafe for TargetValidationReport
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