Enum sourcemap::SourceMapRef 
source · Expand description
Represents a reference to a sourcemap
Variants§
Implementations§
source§impl SourceMapRef
 
impl SourceMapRef
sourcepub fn resolve(&self, minified_url: &str) -> Option<String>
 
pub fn resolve(&self, minified_url: &str) -> Option<String>
Resolves the reference.
The given minified URL needs to be the URL of the minified file. The result is the fully resolved URL of where the source map can be located.
sourcepub fn resolve_path(&self, minified_path: &Path) -> Option<PathBuf>
 
pub fn resolve_path(&self, minified_path: &Path) -> Option<PathBuf>
Resolves the reference against a local file path
This is similar to resolve but operates on file paths.
sourcepub fn get_embedded_sourcemap(&self) -> Result<Option<DecodedMap>>
 
pub fn get_embedded_sourcemap(&self) -> Result<Option<DecodedMap>>
Load an embedded sourcemap if there is a data URL.
Trait Implementations§
source§impl Debug for SourceMapRef
 
impl Debug for SourceMapRef
source§impl PartialEq<SourceMapRef> for SourceMapRef
 
impl PartialEq<SourceMapRef> for SourceMapRef
source§fn eq(&self, other: &SourceMapRef) -> bool
 
fn eq(&self, other: &SourceMapRef) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.impl Eq for SourceMapRef
impl StructuralEq for SourceMapRef
impl StructuralPartialEq for SourceMapRef
Auto Trait Implementations§
impl RefUnwindSafe for SourceMapRef
impl Send for SourceMapRef
impl Sync for SourceMapRef
impl Unpin for SourceMapRef
impl UnwindSafe for SourceMapRef
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.