pub struct SourceExportFact {
pub namespace: SourceExportNamespace,
pub name: String,
pub span: SourceByteSpan,
pub line: usize,
pub binding: SourceExportBinding,
}Expand description
One parser-owned exported name without a synthesized declaration.
Includes Python’s public module declarations, whose lexical writes can withdraw export authority without changing the declaration’s display metadata.
Fields§
§namespace: SourceExportNamespaceNamespace governing competing slots and callable-target eligibility.
name: StringCooked exported slot, including the explicit default slot.
span: SourceByteSpanExact original source extent of the export or its owning declaration.
line: usizeOne-based start line for identity-admission diagnostics.
binding: SourceExportBindingStatic declaration or module evidence owning the export.
Trait Implementations§
Source§impl Clone for SourceExportFact
impl Clone for SourceExportFact
Source§fn clone(&self) -> SourceExportFact
fn clone(&self) -> SourceExportFact
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SourceExportFact
impl Debug for SourceExportFact
impl Eq for SourceExportFact
Source§impl PartialEq for SourceExportFact
impl PartialEq for SourceExportFact
Source§fn eq(&self, other: &SourceExportFact) -> bool
fn eq(&self, other: &SourceExportFact) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SourceExportFact
Auto Trait Implementations§
impl Freeze for SourceExportFact
impl RefUnwindSafe for SourceExportFact
impl Send for SourceExportFact
impl Sync for SourceExportFact
impl Unpin for SourceExportFact
impl UnsafeUnpin for SourceExportFact
impl UnwindSafe for SourceExportFact
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.