pub struct JsImportSpecifier { /* private fields */ }Expand description
Imported binding metadata.
Implementations§
Source§impl JsImportSpecifier
impl JsImportSpecifier
Sourcepub fn new(imported: Option<&str>, local: Option<&str>) -> JsImportSpecifier
pub fn new(imported: Option<&str>, local: Option<&str>) -> JsImportSpecifier
Creates import specifier metadata.
Sourcepub fn named(imported: &str, local: Option<&str>) -> JsImportSpecifier
pub fn named(imported: &str, local: Option<&str>) -> JsImportSpecifier
Creates named import metadata.
Sourcepub fn default(local: &str) -> JsImportSpecifier
pub fn default(local: &str) -> JsImportSpecifier
Creates default import metadata.
Sourcepub fn namespace(local: &str) -> JsImportSpecifier
pub fn namespace(local: &str) -> JsImportSpecifier
Creates namespace import metadata.
Trait Implementations§
Source§impl Clone for JsImportSpecifier
impl Clone for JsImportSpecifier
Source§fn clone(&self) -> JsImportSpecifier
fn clone(&self) -> JsImportSpecifier
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 JsImportSpecifier
impl Debug for JsImportSpecifier
Source§impl PartialEq for JsImportSpecifier
impl PartialEq for JsImportSpecifier
Source§fn eq(&self, other: &JsImportSpecifier) -> bool
fn eq(&self, other: &JsImportSpecifier) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for JsImportSpecifier
impl StructuralPartialEq for JsImportSpecifier
Auto Trait Implementations§
impl Freeze for JsImportSpecifier
impl RefUnwindSafe for JsImportSpecifier
impl Send for JsImportSpecifier
impl Sync for JsImportSpecifier
impl Unpin for JsImportSpecifier
impl UnsafeUnpin for JsImportSpecifier
impl UnwindSafe for JsImportSpecifier
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