Struct gluon_vm::serialization::DeSeed
source · pub struct DeSeed<'gc> {
pub thread: RootedThread,
/* private fields */
}
Fields§
§thread: RootedThread
Implementations§
source§impl<'de, 'gc> DeSeed<'gc>
impl<'de, 'gc> DeSeed<'gc>
pub fn new(thread: &Thread, context: &'gc mut ActiveThread<'_>) -> DeSeed<'gc>
pub fn deserialize<D, T>(self, deserializer: D) -> Result<T, D::Error>where
D: Deserializer<'de>,
T: DeserializeState<'de, Self>,
Trait Implementations§
source§impl<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for ClosureState
impl<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for ClosureState
source§fn deserialize_state<__D>(
__seed: &mut DeSeed<'gc>,
__deserializer: __D
) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for CompiledFunction
impl<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for CompiledFunction
source§fn deserialize_state<__D>(
__seed: &mut DeSeed<'gc>,
__deserializer: __D
) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for CompiledModule
impl<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for CompiledModule
source§fn deserialize_state<__D>(
__seed: &mut DeSeed<'gc>,
__deserializer: __D
) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for Context
impl<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for Context
source§fn deserialize_state<__D>(
__seed: &mut DeSeed<'gc>,
__deserializer: __D
) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for DebugInfo
impl<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for DebugInfo
source§fn deserialize_state<__D>(
__seed: &mut DeSeed<'gc>,
__deserializer: __D
) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for ExternState
impl<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for ExternState
source§fn deserialize_state<__D>(
__seed: &mut DeSeed<'gc>,
__deserializer: __D
) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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<'de, 'gc, S> DeserializeState<'de, DeSeed<'gc>> for Frame<S>where
S: DeserializeState<'de, DeSeed<'gc>>,
impl<'de, 'gc, S> DeserializeState<'de, DeSeed<'gc>> for Frame<S>where
S: DeserializeState<'de, DeSeed<'gc>>,
source§fn deserialize_state<__D>(
__seed: &mut DeSeed<'gc>,
__deserializer: __D
) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for Gc
impl<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for Gc
source§fn deserialize_state<__D>(
__seed: &mut DeSeed<'gc>,
__deserializer: __D
) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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<'de, 'gc, T> DeserializeState<'de, DeSeed<'gc>> for GcPtr<T>
impl<'de, 'gc, T> DeserializeState<'de, DeSeed<'gc>> for GcPtr<T>
source§fn deserialize_state<D>(
seed: &mut DeSeed<'gc>,
deserializer: D
) -> Result<Self, D::Error>where
D: Deserializer<'de>,
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<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for GcPtr<ValueStr>
impl<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for GcPtr<ValueStr>
source§fn deserialize_state<D>(
seed: &mut DeSeed<'gc>,
deserializer: D
) -> Result<Self, D::Error>where
D: Deserializer<'de>,
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<'de, 'gc, V> DeserializeState<'de, DeSeed<'gc>> for Global<V>where
V: DeserializeState<'de, DeSeed<'gc>>,
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>,
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<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for GlobalVmState
impl<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for GlobalVmState
source§fn deserialize_state<__D>(
__seed: &mut DeSeed<'gc>,
__deserializer: __D
) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for Globals
impl<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for Globals
source§fn deserialize_state<__D>(
__seed: &mut DeSeed<'gc>,
__deserializer: __D
) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for InternedStr
impl<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for InternedStr
source§fn deserialize_state<D>(
seed: &mut DeSeed<'gc>,
deserializer: D
) -> Result<Self, D::Error>where
D: Deserializer<'de>,
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<'de, 'gc, T> DeserializeState<'de, DeSeed<'gc>> for Move<T>
impl<'de, 'gc, T> DeserializeState<'de, DeSeed<'gc>> for Move<T>
source§fn deserialize_state<D>(
seed: &mut DeSeed<'gc>,
deserializer: D
) -> Result<Self, D::Error>where
D: Deserializer<'de>,
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<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for RootedThread
impl<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for RootedThread
source§fn deserialize_state<D>(
seed: &mut DeSeed<'gc>,
deserializer: D
) -> StdResult<Self, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize_state<D>(
seed: &mut DeSeed<'gc>,
deserializer: D
) -> StdResult<Self, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserializes
Self
using seed
and the deserializer
source§impl<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for RootedValue<RootedThread>
impl<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for RootedValue<RootedThread>
source§fn deserialize_state<D>(
seed: &mut DeSeed<'gc>,
deserializer: D
) -> Result<Self, D::Error>where
D: Deserializer<'de>,
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<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for Stack
impl<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for Stack
source§fn deserialize_state<__D>(
__seed: &mut DeSeed<'gc>,
__deserializer: __D
) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for State
impl<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for State
source§fn deserialize_state<__D>(
__seed: &mut DeSeed<'gc>,
__deserializer: __D
) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for Thread
impl<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for Thread
source§fn deserialize_state<__D>(
__seed: &mut DeSeed<'gc>,
__deserializer: __D
) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for TypeInfos
impl<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for TypeInfos
source§fn deserialize_state<__D>(
__seed: &mut DeSeed<'gc>,
__deserializer: __D
) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for UpvarInfo
impl<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for UpvarInfo
source§fn deserialize_state<__D>(
__seed: &mut DeSeed<'gc>,
__deserializer: __D
) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for Value
impl<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for Value
source§fn deserialize_state<__D>(
__seed: &mut DeSeed<'gc>,
__deserializer: __D
) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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
Auto Trait Implementations§
impl<'gc> !RefUnwindSafe for DeSeed<'gc>
impl<'gc> !Send for DeSeed<'gc>
impl<'gc> !Sync for DeSeed<'gc>
impl<'gc> Unpin for DeSeed<'gc>
impl<'gc> !UnwindSafe for DeSeed<'gc>
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
§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.