Type Alias gluon_vm::vm::RootedGlobal

source ·
pub type RootedGlobal = Global<RootedValue<RootedThread>>;

Aliased Type§

struct RootedGlobal {
    pub id: Symbol,
    pub typ: ArcType<Symbol>,
    pub metadata: Arc<Metadata, Global>,
    pub value: RootedValue<RootedThread>,
}

Fields§

§id: Symbol§typ: ArcType<Symbol>§metadata: Arc<Metadata, Global>§value: RootedValue<RootedThread>

Trait Implementations§

source§

impl<V: Clone> Clone for Global<V>

source§

fn clone(&self) -> Global<V>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<V: Debug> Debug for Global<V>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de, 'gc, V> DeserializeState<'de, DeSeed<'gc>> for Global<V>where V: DeserializeState<'de, DeSeed<'gc>>,

source§

fn deserialize_state<__D>( __seed: &mut DeSeed<'gc>, __deserializer: __D ) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserializes Self using seed and the deserializer
source§

impl<V> Hash for Global<V>

source§

fn hash<H>(&self, hasher: &mut H)where H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<V> PartialEq<Global<V>> for Global<V>

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<V> SerializeState<SeSeed> for Global<V>where V: SerializeState<SeSeed>,

source§

fn serialize_state<__S>( &self, __serializer: __S, __seed: &SeSeed ) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serializes self
source§

impl<V> Trace for Global<V>where V: Trace,

source§

unsafe fn root(&mut self)

source§

unsafe fn unroot(&mut self)

source§

fn trace(&self, gc: &mut Gc)

source§

impl<V> Eq for Global<V>