Sha256: ce4829e96e098d1dfd5906bda43882bce254ef60846ec2dd5f02626ad5ea7950
Contents?: true
Size: 1.26 KB
Versions: 4
Compression:
Stored size: 1.26 KB
Contents
use crate::runtime::vm::VMGcRef; use crate::{ store::AutoAssertNoGc, AsContextMut, GcRefImpl, Result, Rooted, StoreContext, StoreContextMut, }; use core::any::Any; /// Support for `externref` disabled at compile time because the `gc` cargo /// feature was not enabled. pub enum ExternRef {} impl GcRefImpl for ExternRef {} impl ExternRef { pub(crate) fn from_cloned_gc_ref( _store: &mut AutoAssertNoGc<'_>, _gc_ref: VMGcRef, ) -> Rooted<Self> { unreachable!() } pub fn data<'a, T>( &self, _store: impl Into<StoreContext<'a, T>>, ) -> Result<&'a (dyn Any + Send + Sync)> where T: 'a, { match *self {} } pub fn data_mut<'a, T>( &self, _store: impl Into<StoreContextMut<'a, T>>, ) -> Result<&'a mut (dyn Any + Send + Sync)> where T: 'a, { match *self {} } pub unsafe fn from_raw(_store: impl AsContextMut, raw: u32) -> Option<Rooted<Self>> { assert_eq!(raw, 0); None } pub unsafe fn _from_raw(_store: &mut AutoAssertNoGc<'_>, raw: u32) -> Option<Rooted<Self>> { assert_eq!(raw, 0); None } pub unsafe fn to_raw(&self, _store: impl AsContextMut) -> Result<u32> { match *self {} } }
Version data entries
4 entries across 4 versions & 1 rubygems