Module spacetimedb_sats::de
source · Structs§
- An implementation of [
MapVisitor<'de, K, V>
] where the output is aBTreeMap<K, V>
. - An implementation of [
ArrayVisitor<'de, T>
] where the output is aSmallVec<[T; N]>
. - An implementation of [
ArrayVisitor<'de, T>
] where the output is aVec<T>
. - Turns a closure
impl Fn(&mut Formatter) -> Result
into aDisplay
able object.
Enums§
- What kind of product is this?
Traits§
- Provides an
ArrayVisitor
with access to each element of the array in the input. - A visitor walking through a
Deserializer
for arrays. - A datastructure that can be deserialized from any data format supported by SATS.
- A data structure that can be deserialized in SATS without borrowing any data from the deserializer.
DeserializeSeed
is the stateful form of theDeserialize
trait.- A data format that can deserialize any data structure supported by SATS.
- The
Error
trait allowsDeserialize
implementations to create descriptive error messages belonging to theDeserializer
against which they are currently running. - Visitor used to deserialize the name of a field.
- A vector with two operations:
with_capacity
andpush
. - Provides a
MapVisitor
with access to each element of the array in the input. - A visitor walking through a
Deserializer
for maps. - Provides a
ProductVisitor
with access to each element of the named product in the input. - A visitor walking through a
Deserializer
for products. - Provides a
ProductVisitor
with access to each element of the unnamed product in the input. - A
SliceVisitor
is provided a sliceT
of some elements by aDeserializer
and is tasked with translating this slice to theOutput
type. - Provides a
SumVisitor
access to the data of a sum in the input. - A visitor walking through a
Deserializer
for sums. - A trait for types storing a set of valid names.
- A visitor passed from
SumAccess
toSumVisitor::visit_sum
which the latter uses to deserialize the data of a selected variant. - A visitor passed from
SumVisitor
toSumAccess::variant
which the latter uses to decide what variant to deserialize.
Functions§
- A basic implementation of
ArrayVisitor::visit
using the provided size hint. - Turns a closure
F: Fn(&mut Formatter) -> Result
into aDisplay
able object.