pub struct VMGlobal {
pub from: Arc<Global>,
pub instance_ref: Option<WeakOrStrongInstanceRef>,
}
Expand description
A global export value.
Fields§
§from: Arc<Global>
The global declaration, used for compatibility checking.
instance_ref: Option<WeakOrStrongInstanceRef>
A “reference” to the instance through the
InstanceRef
. None
if it is a host global.
Implementations§
Trait Implementations§
impl Send for VMGlobal
§Safety
This is correct because there is no non-threadsafe logic directly in this type;
correct use of the raw global from multiple threads via definition
requires unsafe
and is the responsibilty of the user of this type.
impl Sync for VMGlobal
§Safety
This is correct because the values directly in definition
should be considered immutable
from the perspective of users of this type and the type is both Send
and Clone
(thus
marking it Sync
adds no new behavior, it only makes this type easier to use)
Auto Trait Implementations§
impl Freeze for VMGlobal
impl !RefUnwindSafe for VMGlobal
impl Unpin for VMGlobal
impl !UnwindSafe for VMGlobal
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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