Enum swc_css_ast::ImportPreludeHref
source · [−]Variants
Url(Url)
Str(Str)
Implementations
sourceimpl ImportPreludeHref
impl ImportPreludeHref
sourcepub fn as_url(&self) -> Option<&Url>
pub fn as_url(&self) -> Option<&Url>
Returns Some
if self
is a reference of variant Url
, and None
otherwise.
sourcepub fn as_mut_url(&mut self) -> Option<&mut Url>
pub fn as_mut_url(&mut self) -> Option<&mut Url>
Returns Some
if self
is a mutable reference of variant Url
, and None
otherwise.
sourcepub fn expect_url(self) -> Urlwhere
Self: Debug,
pub fn expect_url(self) -> Urlwhere
Self: Debug,
sourcepub fn as_str(&self) -> Option<&Str>
pub fn as_str(&self) -> Option<&Str>
Returns Some
if self
is a reference of variant Str
, and None
otherwise.
sourcepub fn as_mut_str(&mut self) -> Option<&mut Str>
pub fn as_mut_str(&mut self) -> Option<&mut Str>
Returns Some
if self
is a mutable reference of variant Str
, and None
otherwise.
sourcepub fn expect_str(self) -> Strwhere
Self: Debug,
pub fn expect_str(self) -> Strwhere
Self: Debug,
Trait Implementations
sourceimpl Clone for ImportPreludeHref
impl Clone for ImportPreludeHref
sourcefn clone(&self) -> ImportPreludeHref
fn clone(&self) -> ImportPreludeHref
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ImportPreludeHref
impl Debug for ImportPreludeHref
sourceimpl<'de> Deserialize<'de> for ImportPreludeHref
impl<'de> Deserialize<'de> for ImportPreludeHref
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl EqIgnoreSpan for ImportPreludeHref
impl EqIgnoreSpan for ImportPreludeHref
fn eq_ignore_span(&self, other: &Self) -> bool
sourceimpl From<Str> for ImportPreludeHref
impl From<Str> for ImportPreludeHref
sourceimpl From<Url> for ImportPreludeHref
impl From<Url> for ImportPreludeHref
sourceimpl Hash for ImportPreludeHref
impl Hash for ImportPreludeHref
sourceimpl PartialEq<ImportPreludeHref> for ImportPreludeHref
impl PartialEq<ImportPreludeHref> for ImportPreludeHref
sourcefn eq(&self, other: &ImportPreludeHref) -> bool
fn eq(&self, other: &ImportPreludeHref) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for ImportPreludeHref
impl Serialize for ImportPreludeHref
sourceimpl Spanned for ImportPreludeHref
impl Spanned for ImportPreludeHref
impl Eq for ImportPreludeHref
impl StructuralEq for ImportPreludeHref
impl StructuralPartialEq for ImportPreludeHref
Auto Trait Implementations
impl RefUnwindSafe for ImportPreludeHref
impl Send for ImportPreludeHref
impl Sync for ImportPreludeHref
impl Unpin for ImportPreludeHref
impl UnwindSafe for ImportPreludeHref
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more