pub struct TaggedDictBuilder { /* private fields */ }
Expand description

A helper to help create dictionaries for you. It has the ability to insert values into the dictionary while maintaining the tags that need to be applied to the individual members

Implementations

Create a new builder

Build the contents of the builder into a Value

Create a new builder with a pre-defined capacity

Insert an untagged key/value pair into the dictionary, to later be tagged when built

Insert a key/value pair into the dictionary

Convert the dictionary into a tagged Value using the original tag

Convert the dictionary into an UntaggedValue

Returns true if the dictionary is empty, false otherwise

Checks if given key exists

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Convert a builder into a tagged Value

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts a value into a Spanned value

Converts a value into a Spanned value, using an unknown Span

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.