Struct gluon_vm::serialization::Seed [−][src]
pub struct Seed<'a, 'gc, T> {
pub state: &'a mut DeSeed<'gc>,
// some fields omitted
}
Fields
state: &'a mut DeSeed<'gc>
Trait Implementations
type Value = GcPtr<ClosureData>
type Value = GcPtr<ClosureData>
The type produced by using this seed.
fn deserialize<D>(self, deserializer: D) -> Result<Self::Value, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(self, deserializer: D) -> Result<Self::Value, D::Error> where
D: Deserializer<'de>,
Equivalent to the more common Deserialize::deserialize
method, except
with some initial piece of data (the seed) passed in. Read more
impl<'de, 'gc, T> DeserializeSeed<'de> for Seed<'_, 'gc, DataDefSeed<T>> where
T: DataDef + 'static,
<T as DataDef>::Value: Sized + PostDeserialize,
T: DeserializeState<'de, DeSeed<'gc>>,
impl<'de, 'gc, T> DeserializeSeed<'de> for Seed<'_, 'gc, DataDefSeed<T>> where
T: DataDef + 'static,
<T as DataDef>::Value: Sized + PostDeserialize,
T: DeserializeState<'de, DeSeed<'gc>>,
fn deserialize<D>(self, deserializer: D) -> Result<Self::Value, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(self, deserializer: D) -> Result<Self::Value, D::Error> where
D: Deserializer<'de>,
Equivalent to the more common Deserialize::deserialize
method, except
with some initial piece of data (the seed) passed in. Read more
type Value = GcPtr<ClosureData>
type Value = GcPtr<ClosureData>
The value produced by this visitor.
Format a message stating what data this Visitor expects to receive. Read more
The input contains a sequence of elements. Read more
The input contains a boolean. Read more
The input contains an i8
. Read more
The input contains an i16
. Read more
The input contains an i32
. Read more
The input contains an i64
. Read more
The input contains a i128
. Read more
The input contains a u8
. Read more
The input contains a u16
. Read more
The input contains a u32
. Read more
The input contains a u64
. Read more
The input contains a u128
. Read more
The input contains an f32
. Read more
The input contains an f64
. Read more
The input contains a char
. Read more
The input contains a string. The lifetime of the string is ephemeral and it may be destroyed after this method returns. Read more
The input contains a string that lives at least as long as the
Deserializer
. Read more
The input contains a string and ownership of the string is being given
to the Visitor
. Read more
The input contains a byte array. The lifetime of the byte array is ephemeral and it may be destroyed after this method returns. Read more
The input contains a byte array that lives at least as long as the
Deserializer
. Read more
The input contains a byte array and ownership of the byte array is being
given to the Visitor
. Read more
The input contains an optional that is absent. Read more
fn visit_some<D>(
self,
deserializer: D
) -> Result<Self::Value, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
fn visit_some<D>(
self,
deserializer: D
) -> Result<Self::Value, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
The input contains an optional that is present. Read more
The input contains a unit ()
. Read more
fn visit_newtype_struct<D>(
self,
deserializer: D
) -> Result<Self::Value, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
fn visit_newtype_struct<D>(
self,
deserializer: D
) -> Result<Self::Value, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
The input contains a newtype struct. Read more
The input contains a key-value map. Read more
fn visit_enum<A>(
self,
data: A
) -> Result<Self::Value, <A as EnumAccess<'de>>::Error> where
A: EnumAccess<'de>,
fn visit_enum<A>(
self,
data: A
) -> Result<Self::Value, <A as EnumAccess<'de>>::Error> where
A: EnumAccess<'de>,
The input contains an enum. Read more
Auto Trait Implementations
impl<'a, 'gc, T> !RefUnwindSafe for Seed<'a, 'gc, T>
impl<'a, 'gc, T> !UnwindSafe for Seed<'a, 'gc, T>
Blanket Implementations
Mutably borrows from an owned value. Read more
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
. Read more
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more