pub struct ImportFact {
pub target: String,
pub span: SourceSpan,
pub type_only: bool,
pub bindings: Vec<ImportBindingFact>,
}Fields§
§target: String§span: SourceSpan§type_only: boolA type-position import (import type { X } from ...). It disappears at
compile time, so it couples declarations without coupling runtime
behaviour, and architecture rules distinguish the two.
bindings: Vec<ImportBindingFact>Exact exported-to-local bindings, when the parser can prove them.
Implementations§
Source§impl ImportFact
impl ImportFact
pub fn new(target: String, span: SourceSpan) -> Self
pub fn type_only(target: String, span: SourceSpan) -> Self
pub fn with_bindings(self, bindings: Vec<ImportBindingFact>) -> Self
Trait Implementations§
Source§impl Clone for ImportFact
impl Clone for ImportFact
Source§fn clone(&self) -> ImportFact
fn clone(&self) -> ImportFact
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 ImportFact
impl Debug for ImportFact
impl Eq for ImportFact
Source§impl PartialEq for ImportFact
impl PartialEq for ImportFact
impl StructuralPartialEq for ImportFact
Auto Trait Implementations§
impl Freeze for ImportFact
impl RefUnwindSafe for ImportFact
impl Send for ImportFact
impl Sync for ImportFact
impl Unpin for ImportFact
impl UnsafeUnpin for ImportFact
impl UnwindSafe for ImportFact
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