Struct quad_compat_rhai::IdentifierBuilder[][src]

pub struct IdentifierBuilder();
Expand description

(internals) A factory of identifiers from text strings. Exported under the internals feature only.

When SmartString is used as Identifier, this just returns a copy because most identifiers in Rhai are short and ASCII-based.

When ImmutableString is used as Identifier, this type acts as an interner which keeps a collection of strings and returns shared instances, only creating a new string when it is not yet interned.

Implementations

Create a new IdentifierBuilder.

Get an identifier from a text string.

Merge another IdentifierBuilder into this.

Trait Implementations

Performs the += operation. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

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.

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.