pub struct ModuleRecord { /* private fields */ }Implementations§
Source§impl ModuleRecord
impl ModuleRecord
pub fn path(&self) -> &ModulePath
pub fn base_scope(&self) -> Scope
pub fn body_scope(&self) -> Scope
pub fn body_scopes(&self) -> ScopeSet
pub fn export( &mut self, name: Rc<str>, namespace: Namespace, binding: BindingId, )
pub fn exported(&self, name: &str, namespace: Namespace) -> Option<BindingId>
pub fn exports(&self) -> impl Iterator<Item = (&Rc<str>, Namespace, BindingId)>
pub fn is_loading(&self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ModuleRecord
impl<'de> Deserialize<'de> for ModuleRecord
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ModuleRecord, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ModuleRecord, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ModuleRecord
impl Serialize for ModuleRecord
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl !Send for ModuleRecord
impl !Sync for ModuleRecord
impl Forget for ModuleRecord
impl Freeze for ModuleRecord
impl RefUnwindSafe for ModuleRecord
impl Unpin for ModuleRecord
impl UnsafeUnpin for ModuleRecord
impl UnwindSafe for ModuleRecord
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