pub struct DeSeed<'gc> {
    pub thread: RootedThread,
    /* private fields */
}

Fields§

§thread: RootedThread

Implementations§

source§

impl<'de, 'gc> DeSeed<'gc>

source

pub fn new(thread: &Thread, context: &'gc mut ActiveThread<'_>) -> DeSeed<'gc>

source

pub fn deserialize<D, T>(self, deserializer: D) -> Result<T, D::Error>
where D: Deserializer<'de>, T: DeserializeState<'de, Self>,

Trait Implementations§

source§

impl AsMut<NodeMap> for DeSeed<'_>

source§

fn as_mut(&mut self) -> &mut NodeMap

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl Borrow<Seed<Symbol, ArcType>> for DeSeed<'_>

source§

fn borrow(&self) -> &Seed<Symbol, ArcType<Symbol>>

Immutably borrows from an owned value. Read more
source§

impl BorrowMut<Seed<Symbol, ArcType>> for DeSeed<'_>

source§

fn borrow_mut(&mut self) -> &mut Seed<Symbol, ArcType<Symbol>>

Mutably borrows from an owned value. Read more
source§

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>,

Deserializes Self using seed and the deserializer
source§

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>,

Deserializes Self using seed and the deserializer
source§

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>,

Deserializes Self using seed and the deserializer
source§

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>,

Deserializes Self using seed and the deserializer
source§

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>,

Deserializes Self using seed and the deserializer
source§

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>,

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>>,

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<'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>,

Deserializes Self using seed and the deserializer
source§

impl<'de, 'gc, T> DeserializeState<'de, DeSeed<'gc>> for GcPtr<T>
where T: Trace + PostDeserialize + 'static + 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<'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>,

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>>,

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<'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>,

Deserializes Self using seed and the deserializer
source§

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>,

Deserializes Self using seed and the deserializer
source§

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>,

Deserializes Self using seed and the deserializer
source§

impl<'de, 'gc, T> DeserializeState<'de, DeSeed<'gc>> for Move<T>
where T: Trace + PostDeserialize + 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<'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>,

Deserializes Self using seed and the deserializer
source§

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>,

Deserializes Self using seed and the deserializer
source§

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>,

Deserializes Self using seed and the deserializer
source§

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>,

Deserializes Self using seed and the deserializer
source§

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>,

Deserializes Self using seed and the deserializer
source§

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>,

Deserializes Self using seed and the deserializer
source§

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>,

Deserializes Self using seed and the deserializer
source§

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>,

Deserializes Self using seed and the deserializer
source§

impl<'a, 'gc, T> From<&'a mut DeSeed<'gc>> for Seed<'a, 'gc, T>

source§

fn from(value: &'a mut DeSeed<'gc>) -> Self

Converts to this type from the input type.

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<Id> AsId<Id> for Id
where Id: ?Sized,

source§

fn as_id(&self) -> &Id

source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<Choices> CoproductSubsetter<CNil, HNil> for Choices

§

type Remainder = Choices

§

fn subset( self ) -> Result<CNil, <Choices as CoproductSubsetter<CNil, HNil>>::Remainder>

Extract a subset of the possible types in a coproduct (or get the remaining possibilities) Read more
§

impl<T> Downcast for T
where T: 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>

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)

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)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<D, T> FromPtr<D> for T

source§

unsafe fn make_ptr(_: D, ptr: *mut ()) -> *mut T

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T, U, I> LiftInto<U, I> for T
where U: LiftFrom<T, I>,

§

fn lift_into(self) -> U

Performs the indexed conversion.
§

impl<Source> Sculptor<HNil, HNil> for Source

§

type Remainder = Source

§

fn sculpt(self) -> (HNil, <Source as Sculptor<HNil, HNil>>::Remainder)

Consumes the current HList and returns an HList with the requested shape. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> Any for T
where T: Any,

source§

impl<T> Captures<'_> for T