pub enum Entry {
Bare(String),
Subpath {
subpath: String,
target: String,
},
Prefix {
subpath: String,
dir: String,
},
}Expand description
An import-map-worthy entry derived from a package’s package.json.
Variants§
Bare(String)
The bare specifier (name) → a target relative path (the . export).
Subpath
A concrete subpath (name/<subpath>) → a target relative path.
Prefix
A subpath pattern ("./…/*" export). subpath is the prefix before *
(e.g. "helpers/" or ""), dir the target directory before * (e.g.
"dist/").
Trait Implementations§
impl Eq for Entry
impl StructuralPartialEq for Entry
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.