[][src]Enum swc_js_sourcemap::SourceMapRef

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]

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 Debug for SourceMapRef[src]

impl PartialEq<SourceMapRef> for SourceMapRef[src]

impl StructuralPartialEq for SourceMapRef[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.