Enum swc_ecma_ast::ExportSpecifier [−][src]
Variants
Namespace(ExportNamespaceSpecifier)
Default(ExportDefaultSpecifier)
Named(ExportNamedSpecifier)
Implementations
impl ExportSpecifier
[src]
pub fn is_namespace(&self) -> bool
[src]
Returns true
if self
is of variant Namespace
.
pub fn expect_namespace(self) -> ExportNamespaceSpecifier where
Self: Debug,
[src]
Self: Debug,
Unwraps the value, yielding the content of Namespace
.
Panics
Panics if the value is not Namespace
, with a panic message including the content of self
.
pub fn namespace(self) -> Option<ExportNamespaceSpecifier>
[src]
Returns Some
if self
is of variant Namespace
, and None
otherwise.
pub fn is_default(&self) -> bool
[src]
Returns true
if self
is of variant Default
.
pub fn expect_default(self) -> ExportDefaultSpecifier where
Self: Debug,
[src]
Self: Debug,
Unwraps the value, yielding the content of Default
.
Panics
Panics if the value is not Default
, with a panic message including the content of self
.
pub fn default(self) -> Option<ExportDefaultSpecifier>
[src]
Returns Some
if self
is of variant Default
, and None
otherwise.
pub fn is_named(&self) -> bool
[src]
Returns true
if self
is of variant Named
.
pub fn expect_named(self) -> ExportNamedSpecifier where
Self: Debug,
[src]
Self: Debug,
Unwraps the value, yielding the content of Named
.
Panics
Panics if the value is not Named
, with a panic message including the content of self
.
pub fn named(self) -> Option<ExportNamedSpecifier>
[src]
Returns Some
if self
is of variant Named
, and None
otherwise.
Trait Implementations
impl Clone for ExportSpecifier
[src]
fn clone(&self) -> ExportSpecifier
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ExportSpecifier
[src]
impl<'de> Deserialize<'de> for ExportSpecifier
[src]
fn deserialize<D>(Deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl Eq for ExportSpecifier
[src]
impl EqIgnoreSpan for ExportSpecifier
[src]
fn eq_ignore_span(&self, other: &Self) -> bool
[src]
impl From<ExportDefaultSpecifier> for ExportSpecifier
[src]
fn from(v: ExportDefaultSpecifier) -> Self
[src]
impl From<ExportNamedSpecifier> for ExportSpecifier
[src]
fn from(v: ExportNamedSpecifier) -> Self
[src]
impl From<ExportNamespaceSpecifier> for ExportSpecifier
[src]
fn from(v: ExportNamespaceSpecifier) -> Self
[src]
impl Hash for ExportSpecifier
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<ExportSpecifier> for ExportSpecifier
[src]
fn eq(&self, other: &ExportSpecifier) -> bool
[src]
fn ne(&self, other: &ExportSpecifier) -> bool
[src]
impl Serialize for ExportSpecifier
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl Spanned for ExportSpecifier
[src]
impl StructuralEq for ExportSpecifier
[src]
impl StructuralPartialEq for ExportSpecifier
[src]
Auto Trait Implementations
impl RefUnwindSafe for ExportSpecifier
impl Send for ExportSpecifier
impl Sync for ExportSpecifier
impl Unpin for ExportSpecifier
impl UnwindSafe for ExportSpecifier
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Send for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Sync for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,