pub struct ExportReference {
pub from_file: PathBuf,
pub kind: String,
pub line: Option<u32>,
pub search_visibility: Option<SearchVisibility>,
pub reason: Option<SearchGapReason>,
pub search_as: Option<String>,
}Expand description
A direct reference to an export.
Fields§
§from_file: PathBufFile that contains the reference.
kind: StringReference kind, such as named import, default import, or re-export.
line: Option<u32>1-based line of the import statement in from_file. Absent when the
graph holds no source position for the reference or the file cannot be
read.
search_visibility: Option<SearchVisibility>Whether a whole-word text search for the export name finds this consumer. 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 in this consumer. With
search_visibility found, only pass-through occurs: the consumer
forwards the export and does not use it.
search_as: Option<String>The name to search for in this consumer instead of the export name. Absent when the export name finds the uses or no single name does.
Implementations§
Source§impl ExportReference
impl ExportReference
Sourcepub const fn new(from_file: PathBuf, kind: String) -> ExportReference
pub const fn new(from_file: PathBuf, kind: String) -> ExportReference
A reference with no source position and no search check.
Trait Implementations§
Source§impl Clone for ExportReference
impl Clone for ExportReference
Source§fn clone(&self) -> ExportReference
fn clone(&self) -> ExportReference
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExportReference
impl Debug for ExportReference
Source§impl JsonSchema for ExportReference
impl JsonSchema for ExportReference
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 ExportReference
impl Serialize for ExportReference
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 ExportReference
impl RefUnwindSafe for ExportReference
impl Send for ExportReference
impl Sync for ExportReference
impl Unpin for ExportReference
impl UnsafeUnpin for ExportReference
impl UnwindSafe for ExportReference
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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