Struct JsExportStatementParts
pub struct JsExportStatementParts { /* private fields */ }Expand description
Lightweight export statement metadata.
Implementations§
§impl JsExportStatementParts
impl JsExportStatementParts
pub const fn new(kind: JsExportKind) -> JsExportStatementParts
pub const fn new(kind: JsExportKind) -> JsExportStatementParts
Creates export statement metadata without a re-export source.
pub fn with_source(self, source: JsModuleSpecifier) -> JsExportStatementParts
pub fn with_source(self, source: JsModuleSpecifier) -> JsExportStatementParts
Adds a re-export source specifier.
pub fn with_specifier(
self,
specifier: JsExportSpecifier,
) -> JsExportStatementParts
pub fn with_specifier( self, specifier: JsExportSpecifier, ) -> JsExportStatementParts
Adds a specifier and returns the updated metadata.
pub const fn kind(&self) -> JsExportKind
pub const fn kind(&self) -> JsExportKind
Returns the export kind.
pub const fn source(&self) -> Option<&JsModuleSpecifier>
pub const fn source(&self) -> Option<&JsModuleSpecifier>
Returns the optional re-export source specifier.
pub fn specifiers(&self) -> &[JsExportSpecifier]
pub fn specifiers(&self) -> &[JsExportSpecifier]
Returns exported binding metadata.
Trait Implementations§
§impl Clone for JsExportStatementParts
impl Clone for JsExportStatementParts
§fn clone(&self) -> JsExportStatementParts
fn clone(&self) -> JsExportStatementParts
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for JsExportStatementParts
impl Debug for JsExportStatementParts
§impl PartialEq for JsExportStatementParts
impl PartialEq for JsExportStatementParts
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