[−][src]Enum sourcemap::SourceMapRef
Represents a reference to a sourcemap
Variants
Ref(String)A regular URL reference
LegacyRef(String)A legacy URL reference
MissingIndicates a missing reference
Methods
impl SourceMapRef[src]
pub fn get_url(&self) -> Option<&str>[src]
Return the URL of the reference
pub fn get_embedded_sourcemap(&self) -> Result<Option<DecodedMap>>[src]
Load an embedded sourcemap if there is a data URL.
Trait Implementations
impl PartialEq<SourceMapRef> for SourceMapRef[src]
fn eq(&self, other: &SourceMapRef) -> bool[src]
fn ne(&self, other: &SourceMapRef) -> bool[src]
impl Debug for SourceMapRef[src]
Auto Trait Implementations
impl Send for SourceMapRef
impl Sync for SourceMapRef
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,