pub struct ModuleRequest {
pub specifier: String,
pub attributes: Vec<(String, String)>,
pub span: Span,
}Expand description
A module a module asks for: its specifier and import attributes.
Fields§
§specifier: StringThe string after from, or after import, decoded.
attributes: Vec<(String, String)>The with { key: "value" } attributes, sorted by key as the spec
sorts them (by UTF-16 code units).
span: SpanWhere the specifier’s string literal first appears.
Trait Implementations§
Source§impl Clone for ModuleRequest
impl Clone for ModuleRequest
Source§impl Debug for ModuleRequest
impl Debug for ModuleRequest
impl Eq for ModuleRequest
Source§impl PartialEq for ModuleRequest
impl PartialEq for ModuleRequest
impl StructuralPartialEq for ModuleRequest
Auto Trait Implementations§
impl Forget for ModuleRequest
impl Freeze for ModuleRequest
impl Move for ModuleRequest
impl RefUnwindSafe for ModuleRequest
impl Send for ModuleRequestwhere
RawVecInner: Send,
impl Sync for ModuleRequestwhere
RawVecInner: Sync,
impl Unpin for ModuleRequest
impl UnsafeUnpin for ModuleRequestwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
impl UnwindSafe for ModuleRequestwhere
RawVecInner: UnwindSafe,
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