Skip to main content

ImpactClosureGap

Struct ImpactClosureGap 

Source
pub struct ImpactClosureGap {
    pub consumer_file: String,
    pub consumed_symbols: Vec<String>,
    pub note: String,
    pub search_visibility: Option<SearchVisibility>,
    pub reason: Option<SearchGapReason>,
    pub search_as: Option<String>,
    pub search_symbol: Option<String>,
}
Expand description

One coordination-gap entry in an ImpactClosureTrace.

Fields§

§consumer_file: String

Root-relative path of the consumer module.

§consumed_symbols: Vec<String>

Exported symbol names the consumer references.

§note: String

Scope note for the syntactic trace.

§search_visibility: Option<SearchVisibility>

Whether a whole-word text search for the consumed symbol names finds this consumer. When the consumer uses more than one symbol, the worst level wins (missed, then renamed, then found). Absent when no check applies, for example when the consumer source cannot be read.

§reason: Option<SearchGapReason>

Why a text search does not find the uses of the worst symbol. With search_visibility found, only pass-through occurs.

§search_as: Option<String>

The name to search for in this consumer instead of the symbol name.

§search_symbol: Option<String>

The entry of consumed_symbols that search_visibility, reason and search_as describe: the worst symbol, default for a default export. Present when search_visibility is present.

Trait Implementations§

Source§

impl Debug for ImpactClosureGap

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Serialize for ImpactClosureGap

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<'a, T> FromIn<'a, T> for T

Source§

fn from_in(t: T, _: &'a Allocator) -> T

Converts to this type from the input type within the given allocator.
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<'a, T, U> IntoIn<'a, U> for T
where U: FromIn<'a, T>,

Source§

fn into_in(self, allocator: &'a Allocator) -> U

Converts this type into the (usually inferred) input type within the given allocator.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.