pub struct Export {Show 16 fields
pub name: String,
pub kind: ExportKind,
pub is_type: bool,
pub local_name: Option<String>,
pub from: Option<String>,
pub imported_name: Option<String>,
pub tags: Vec<String>,
pub span: Span,
pub enum_members: Vec<Member>,
pub namespace_members: Vec<Member>,
pub removal: Option<Removal>,
pub referenced_in_file: bool,
pub referenced_in: Vec<String>,
pub members_read_in_file: Vec<String>,
pub alias_of: Option<String>,
pub registrations: Vec<Registration>,
}Expand description
One export of a module.
Fields§
§name: StringExported name: default, * for export * from, otherwise the name importers use.
kind: ExportKindWhat it is.
is_type: boolExists only at type level (interface, type, export type { … }).
local_name: Option<String>Local binding behind the export, when it has one.
from: Option<String>Source module of a re-export.
imported_name: Option<String>Name taken from the source module of a re-export (* for a star re-export).
JSDoc tag names (without @) in the comment directly above, such as public, internal, alias.
span: SpanLocation of the exported name (the statement for star re-exports).
enum_members: Vec<Member>Members of an enum export.
namespace_members: Vec<Member>Exported members of a namespace export.
removal: Option<Removal>How to remove the export, when a safe edit exists.
referenced_in_file: boolThe local binding is referenced elsewhere in this file (excluding export clauses).
referenced_in: Vec<String>Names of the other value exports of this file whose signature mentions this export’s local binding.
members_read_in_file: Vec<String>Members of an enum or namespace export read in this file by name (E.A, E['A'], const { A } = E, or a
namespace member’s bare name inside the namespace body); sorted.
alias_of: Option<String>export const b = a: the identifier the exported constant is initialised with.
registrations: Vec<Registration>How the class behind the export is registered as a custom element, in source order. A registered element is used by the browser through its tag name, not through an import.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Export
impl<'de> Deserialize<'de> for Export
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Export
impl StructuralPartialEq for Export
Auto Trait Implementations§
impl Forget for Export
impl Freeze for Export
impl RefUnwindSafe for Export
impl Send for Export
impl Sync for Export
impl Unpin for Export
impl UnsafeUnpin for Export
impl UnwindSafe for Export
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
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