pub struct JsExportStatementParts { /* private fields */ }Expand description
Lightweight export statement metadata.
Implementations§
Source§impl JsExportStatementParts
impl JsExportStatementParts
Sourcepub const fn new(kind: JsExportKind) -> Self
pub const fn new(kind: JsExportKind) -> Self
Creates export statement metadata without a re-export source.
Sourcepub fn with_source(self, source: JsModuleSpecifier) -> Self
pub fn with_source(self, source: JsModuleSpecifier) -> Self
Adds a re-export source specifier.
Sourcepub fn with_specifier(self, specifier: JsExportSpecifier) -> Self
pub fn with_specifier(self, specifier: JsExportSpecifier) -> Self
Adds a specifier and returns the updated metadata.
Sourcepub const fn kind(&self) -> JsExportKind
pub const fn kind(&self) -> JsExportKind
Returns the export kind.
Sourcepub const fn source(&self) -> Option<&JsModuleSpecifier>
pub const fn source(&self) -> Option<&JsModuleSpecifier>
Returns the optional re-export source specifier.
Sourcepub fn specifiers(&self) -> &[JsExportSpecifier]
pub fn specifiers(&self) -> &[JsExportSpecifier]
Returns exported binding metadata.
Trait Implementations§
Source§impl Clone for JsExportStatementParts
impl Clone for JsExportStatementParts
Source§fn clone(&self) -> JsExportStatementParts
fn clone(&self) -> JsExportStatementParts
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JsExportStatementParts
impl Debug for JsExportStatementParts
Source§impl PartialEq for JsExportStatementParts
impl PartialEq for JsExportStatementParts
Source§fn eq(&self, other: &JsExportStatementParts) -> bool
fn eq(&self, other: &JsExportStatementParts) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for JsExportStatementParts
impl StructuralPartialEq for JsExportStatementParts
Auto Trait Implementations§
impl Freeze for JsExportStatementParts
impl RefUnwindSafe for JsExportStatementParts
impl Send for JsExportStatementParts
impl Sync for JsExportStatementParts
impl Unpin for JsExportStatementParts
impl UnsafeUnpin for JsExportStatementParts
impl UnwindSafe for JsExportStatementParts
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
Mutably borrows from an owned value. Read more