pub struct ImportEntry { /* private fields */ }Expand description
ImportEntry record.
Implementations§
Source§impl ImportEntry
impl ImportEntry
Sourcepub fn new(
module_request: Sym,
import_name: ImportName,
local_name: Identifier,
attributes: Box<[ImportAttribute]>,
) -> Self
pub fn new( module_request: Sym, import_name: ImportName, local_name: Identifier, attributes: Box<[ImportAttribute]>, ) -> Self
Creates a new ImportEntry.
Sourcepub const fn module_request(&self) -> Sym
pub const fn module_request(&self) -> Sym
Gets the module from where the binding must be imported.
Sourcepub const fn import_name(&self) -> ImportName
pub const fn import_name(&self) -> ImportName
Gets the import name of the imported binding.
Sourcepub const fn local_name(&self) -> Identifier
pub const fn local_name(&self) -> Identifier
Gets the local name of the imported binding.
Sourcepub fn attributes(&self) -> &[ImportAttribute]
pub fn attributes(&self) -> &[ImportAttribute]
Gets the import attributes.
Trait Implementations§
Source§impl Clone for ImportEntry
impl Clone for ImportEntry
Source§fn clone(&self) -> ImportEntry
fn clone(&self) -> ImportEntry
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 moreAuto Trait Implementations§
impl Freeze for ImportEntry
impl RefUnwindSafe for ImportEntry
impl Send for ImportEntry
impl Sync for ImportEntry
impl Unpin for ImportEntry
impl UnsafeUnpin for ImportEntry
impl UnwindSafe for ImportEntry
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