pub struct ImportedSymbol {
pub imported_name: ImportedName,
pub local_name: String,
pub import_span: Span,
pub is_type_only: bool,
pub is_type_only_star: bool,
/* private fields */
}Expand description
A symbol imported across an edge.
Fields§
§imported_name: ImportedNameThe name as imported from the target (Named, Default, Namespace,
SideEffect).
local_name: StringLocal binding name in the importing file.
import_span: SpanByte span of the import statement in the source file.
is_type_only: boolWhether this import is type-only (import type { ... }).
Used to skip type-only edges in circular dependency detection.
is_type_only_star: boolWhether the ambient star this symbol stands for is spelled
export type * (issue #2375), which forwards type meanings only.
Implementations§
Source§impl ImportedSymbol
impl ImportedSymbol
Sourcepub const fn load_kind(&self) -> ImportLoadKind
pub const fn load_kind(&self) -> ImportLoadKind
When the target of this symbol edge loads, relative to the importer.
Sourcepub const fn is_eager_value(&self) -> bool
pub const fn is_eager_value(&self) -> bool
Whether this symbol loads its target before the importer runs and carries a runtime value, so the target is on the startup path.
Trait Implementations§
Source§impl Debug for ImportedSymbol
impl Debug for ImportedSymbol
Source§impl<'de> Deserialize<'de> for ImportedSymbol
impl<'de> Deserialize<'de> for ImportedSymbol
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ImportedSymbol, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ImportedSymbol, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ImportedSymbol
impl Serialize for ImportedSymbol
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,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ImportedSymbol
impl RefUnwindSafe for ImportedSymbol
impl Send for ImportedSymbol
impl Sync for ImportedSymbol
impl Unpin for ImportedSymbol
impl UnsafeUnpin for ImportedSymbol
impl UnwindSafe for ImportedSymbol
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
Converts
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> ⓘ
Converts
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