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: StringRoot-relative path of the consumer module.
consumed_symbols: Vec<String>Exported symbol names the consumer references.
note: StringScope 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
impl Debug for ImpactClosureGap
Source§impl JsonSchema for ImpactClosureGap
impl JsonSchema for ImpactClosureGap
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl Serialize for ImpactClosureGap
impl Serialize for ImpactClosureGap
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for ImpactClosureGap
impl RefUnwindSafe for ImpactClosureGap
impl Send for ImpactClosureGap
impl Sync for ImpactClosureGap
impl Unpin for ImpactClosureGap
impl UnsafeUnpin for ImpactClosureGap
impl UnwindSafe for ImpactClosureGap
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more