Enum sourcemap::SourceMapRef
[−]
[src]
pub enum SourceMapRef { Ref(String), LegacyRef(String), Missing, }
Represents a reference to a sourcemap
Variants
Ref(String)
A regular URL reference
LegacyRef(String)
A legacy URL reference
Missing
Indicates a missing reference
Methods
impl SourceMapRef
[src]
fn get_url(&self) -> Option<&str>
Return the URL of the reference
fn get_embedded_sourcemap(&self) -> Result<Option<DecodedMap>>
Load an embedded sourcemap if there is a data URL.
Trait Implementations
impl PartialEq for SourceMapRef
[src]
fn eq(&self, __arg_0: &SourceMapRef) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SourceMapRef) -> bool
This method tests for !=
.