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§
Trait Implementations§
Source§impl Clone for ExportReference
impl Clone for ExportReference
Source§impl Debug for ExportReference
impl Debug for ExportReference
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
Mutably borrows from an owned value. Read more