pub struct DynamicImportPattern {
pub prefix: String,
pub suffix: Option<String>,
pub span: Span,
pub mechanism: ModuleLoadMechanism,
}Expand description
A dynamic import with a partially resolved pattern.
Fields§
§prefix: StringStatic prefix of the import path (e.g., “./locales/”). May contain glob characters.
suffix: Option<String>Static suffix of the import path (e.g., “.json”), if any.
span: SpanSource span in the original file.
mechanism: ModuleLoadMechanismRuntime mechanism used to load modules matching this pattern.
Trait Implementations§
Source§impl Clone for DynamicImportPattern
impl Clone for DynamicImportPattern
Auto Trait Implementations§
impl Freeze for DynamicImportPattern
impl RefUnwindSafe for DynamicImportPattern
impl Send for DynamicImportPattern
impl Sync for DynamicImportPattern
impl Unpin for DynamicImportPattern
impl UnsafeUnpin for DynamicImportPattern
impl UnwindSafe for DynamicImportPattern
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