logo
pub struct SharedSerializeMap { /* private fields */ }
Expand description

An adapter that adds shared serialization support to a serializer.

Implementations

Creates a new shared registry map.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

The error produced by any failing methods.

Gets the position of a previously-added shared pointer. Read more

Adds the position of a shared pointer to the registry.

Gets the position of a previously-added shared value. Read more

Adds the position of a shared value to the registry.

Archives the given shared value and returns its position. If the value has already been added then it returns the position of the previously added value. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

The archived version of the pointer metadata for this type.

Converts some archived metadata to the pointer metadata for itself.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Deserializes using the given deserializer

Returns the argument unchanged.

Calls U::from(self).

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

Gets the layout of the type.

The type for metadata in pointers and references to Self.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.