pub enum ExportSpecifier {
Namespace(ExportNamespaceSpecifier),
Default(ExportDefaultSpecifier),
Named(ExportNamedSpecifier),
}Variants§
Implementations§
source§impl ExportSpecifier
impl ExportSpecifier
sourcepub const fn is_namespace(&self) -> bool
pub const fn is_namespace(&self) -> bool
Returns true if self is of variant Namespace.
sourcepub fn as_namespace(&self) -> Option<&ExportNamespaceSpecifier>
pub fn as_namespace(&self) -> Option<&ExportNamespaceSpecifier>
Returns Some if self is a reference of variant Namespace, and None otherwise.
sourcepub fn as_mut_namespace(&mut self) -> Option<&mut ExportNamespaceSpecifier>
pub fn as_mut_namespace(&mut self) -> Option<&mut ExportNamespaceSpecifier>
Returns Some if self is a mutable reference of variant Namespace, and None otherwise.
sourcepub fn expect_namespace(self) -> ExportNamespaceSpecifierwhere
Self: Debug,
pub fn expect_namespace(self) -> ExportNamespaceSpecifierwhere
Self: Debug,
sourcepub fn namespace(self) -> Option<ExportNamespaceSpecifier>
pub fn namespace(self) -> Option<ExportNamespaceSpecifier>
Returns Some if self is of variant Namespace, and None otherwise.
sourcepub const fn is_default(&self) -> bool
pub const fn is_default(&self) -> bool
Returns true if self is of variant Default.
sourcepub fn as_default(&self) -> Option<&ExportDefaultSpecifier>
pub fn as_default(&self) -> Option<&ExportDefaultSpecifier>
Returns Some if self is a reference of variant Default, and None otherwise.
sourcepub fn as_mut_default(&mut self) -> Option<&mut ExportDefaultSpecifier>
pub fn as_mut_default(&mut self) -> Option<&mut ExportDefaultSpecifier>
Returns Some if self is a mutable reference of variant Default, and None otherwise.
sourcepub fn expect_default(self) -> ExportDefaultSpecifierwhere
Self: Debug,
pub fn expect_default(self) -> ExportDefaultSpecifierwhere
Self: Debug,
sourcepub fn default(self) -> Option<ExportDefaultSpecifier>
pub fn default(self) -> Option<ExportDefaultSpecifier>
Returns Some if self is of variant Default, and None otherwise.
sourcepub fn as_named(&self) -> Option<&ExportNamedSpecifier>
pub fn as_named(&self) -> Option<&ExportNamedSpecifier>
Returns Some if self is a reference of variant Named, and None otherwise.
sourcepub fn as_mut_named(&mut self) -> Option<&mut ExportNamedSpecifier>
pub fn as_mut_named(&mut self) -> Option<&mut ExportNamedSpecifier>
Returns Some if self is a mutable reference of variant Named, and None otherwise.
sourcepub fn expect_named(self) -> ExportNamedSpecifierwhere
Self: Debug,
pub fn expect_named(self) -> ExportNamedSpecifierwhere
Self: Debug,
sourcepub fn named(self) -> Option<ExportNamedSpecifier>
pub fn named(self) -> Option<ExportNamedSpecifier>
Returns Some if self is of variant Named, and None otherwise.
Trait Implementations§
source§impl Clone for ExportSpecifier
impl Clone for ExportSpecifier
source§fn clone(&self) -> ExportSpecifier
fn clone(&self) -> ExportSpecifier
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ExportSpecifier
impl Debug for ExportSpecifier
source§impl<'de> Deserialize<'de> for ExportSpecifier
impl<'de> Deserialize<'de> for ExportSpecifier
source§fn 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>,
source§impl EqIgnoreSpan for ExportSpecifier
impl EqIgnoreSpan for ExportSpecifier
fn eq_ignore_span(&self, other: &Self) -> bool
source§impl From<ExportDefaultSpecifier> for ExportSpecifier
impl From<ExportDefaultSpecifier> for ExportSpecifier
source§fn from(v: ExportDefaultSpecifier) -> Self
fn from(v: ExportDefaultSpecifier) -> Self
source§impl From<ExportNamedSpecifier> for ExportSpecifier
impl From<ExportNamedSpecifier> for ExportSpecifier
source§fn from(v: ExportNamedSpecifier) -> Self
fn from(v: ExportNamedSpecifier) -> Self
source§impl From<ExportNamespaceSpecifier> for ExportSpecifier
impl From<ExportNamespaceSpecifier> for ExportSpecifier
source§fn from(v: ExportNamespaceSpecifier) -> Self
fn from(v: ExportNamespaceSpecifier) -> Self
source§impl Hash for ExportSpecifier
impl Hash for ExportSpecifier
source§impl PartialEq for ExportSpecifier
impl PartialEq for ExportSpecifier
source§impl Serialize for ExportSpecifier
impl Serialize for ExportSpecifier
source§impl Spanned for ExportSpecifier
impl Spanned for ExportSpecifier
impl Eq for ExportSpecifier
impl StructuralPartialEq for ExportSpecifier
Auto Trait Implementations§
impl Freeze for ExportSpecifier
impl RefUnwindSafe for ExportSpecifier
impl Send for ExportSpecifier
impl Sync for ExportSpecifier
impl Unpin for ExportSpecifier
impl UnwindSafe for ExportSpecifier
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CallHasher for T
impl<T> CallHasher for T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more