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