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 ModuleRequest
impl Sync for ModuleRequest
impl Unpin for ModuleRequest
impl UnsafeUnpin for ModuleRequest
impl UnwindSafe for ModuleRequest
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