pub struct ExportTarget {
pub file: FilePath,
pub name: String,
}Expand description
The file and name a chain of re-exports ends at.
name is the name the declaring file uses, which is what symbolOf reports as
exported — so export { Decimal as Big } asked about Big answers Decimal, and a
rule comparing against a required export name compares against the real one rather than
against whatever spelling the last hop chose.
Fields§
§file: FilePathThe declaring file, relative to the project root.
name: StringThe name it declares the export under.
Trait Implementations§
Source§impl Clone for ExportTarget
impl Clone for ExportTarget
Source§fn clone(&self) -> ExportTarget
fn clone(&self) -> ExportTarget
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 ExportTarget
impl Debug for ExportTarget
impl Eq for ExportTarget
Source§impl Ord for ExportTarget
impl Ord for ExportTarget
Source§fn cmp(&self, other: &ExportTarget) -> Ordering
fn cmp(&self, other: &ExportTarget) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ExportTarget
impl PartialEq for ExportTarget
Source§impl PartialOrd for ExportTarget
impl PartialOrd for ExportTarget
impl StructuralPartialEq for ExportTarget
Auto Trait Implementations§
impl Freeze for ExportTarget
impl RefUnwindSafe for ExportTarget
impl Send for ExportTarget
impl Sync for ExportTarget
impl Unpin for ExportTarget
impl UnsafeUnpin for ExportTarget
impl UnwindSafe for ExportTarget
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