Skip to main content Module prelude Copy item path Source pub use crate::de ::*;pub use crate::ser ::*;pub use crate ::*;fmt Utilities for formatting and printing strings. forward_to_deserialize_any Helper macro when implementing the Deserializer part of a new data format
for Serde. Arc A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically
Reference Counted’. ArcWeak Weak is a version of Arc that holds a non-owning reference to the
managed allocation.BTreeMap An ordered map based on a B-Tree . BTreeSet An ordered set based on a B-Tree. BinaryHeap A priority queue implemented with a binary heap. Box A pointer type that uniquely owns a heap allocation of type T. Cell A mutable memory location. Duration A Duration type to represent a span of time, typically used for system
timeouts. HashMap A hash map implemented with quadratic probing and SIMD lookup. HashSet A hash set implemented as a HashMap where the value is (). IgnoredAny An efficient way of discarding data from a deserializer. Impossible Helper type for implementing a Serializer that does not support
serializing one of the compound types. LinkedList A doubly-linked list with owned nodes. Mutex A mutual exclusion primitive useful for protecting shared data PhantomData Zero-sized type used to mark things that “act like” they own a T. Pin A pointer which pins its pointee in place. Rc A single-threaded reference-counting pointer. ‘Rc’ stands for ‘Reference
Counted’. RcWeak Weak is a version of Rc that holds a non-owning reference to the
managed allocation.RefCell A mutable memory location with dynamically checked borrow rules RwLock A reader-writer lock String A UTF-8–encoded, growable string. SystemTime A measurement of the system clock, useful for talking to
external entities like the file system or other processes. Vec A contiguous growable array type, written as Vec<T>, short for ‘vector’. VecDeque A double-ended queue implemented with a growable ring buffer. Bound An endpoint of a range of keys. Cow A clone-on-write smart pointer. Option The Option type. See the module level documentation for more. Result Result is a type that represents either success (Ok ) or failure (Err ).Unexpected Unexpected represents an unexpected invocation of any one of the Visitor
trait methods.BuildHasher A trait for creating instances of Hasher . DeError The Error trait allows Deserialize implementations to create descriptive
error messages belonging to the Deserializer against which they are
currently running. Deserialize A data structure that can be deserialized from any data format supported
by Serde. DeserializeOwned A data structure that can be deserialized without borrowing any data from
the deserializer. DeserializeSeed DeserializeSeed is the stateful form of the Deserialize trait. If you
ever find yourself looking for a way to pass data into a Deserialize impl,
this trait is the way to do it.Deserializer A data format that can deserialize any data structure supported by
Serde. Display Format trait for an empty format, {}. EnumAccess Provides a Visitor access to the data of an enum in the input. Expected Expected represents an explanation of what data a Visitor was expecting
to receive.FromStr Parse a value from a string Hash A hashable type. IntoDeserializer Converts an existing value into a Deserializer from which other values can
be deserialized. MapAccess Provides a Visitor access to each entry of a map in the input. SeqAccess Provides a Visitor access to each element of a sequence in the input. SerError Trait used by Serialize implementations to generically construct
errors belonging to the Serializer against which they are
currently running. Serialize A data structure that can be serialized into any data format supported
by Serde. SerializeMap Returned from Serializer::serialize_map. SerializeSeq Returned from Serializer::serialize_seq. SerializeStruct Returned from Serializer::serialize_struct. SerializeStructVariant Returned from Serializer::serialize_struct_variant. SerializeTuple Returned from Serializer::serialize_tuple. SerializeTupleStruct Returned from Serializer::serialize_tuple_struct. SerializeTupleVariant Returned from Serializer::serialize_tuple_variant. Serializer A data format that can serialize any data structure supported by Serde. ToOwned A generalization of Clone to borrowed data. ToString A trait for converting a value to a String. TryFrom Simple and safe type conversions that may fail in a controlled
way under some circumstances. It is the reciprocal of TryInto . TryInto An attempted conversion that consumes self, which may or may not be
expensive. VariantAccess VariantAccess is a visitor that is created by the Deserializer and
passed to the Deserialize to deserialize the content of a particular enum
variant.Visitor This trait represents a visitor that walks through a deserializer. Hash Derive macro generating an impl of the trait Hash.