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
Auto Trait Implementations
impl RefUnwindSafe for IdentifierBuilder
impl Send for IdentifierBuilder
impl Sync for IdentifierBuilder
impl Unpin for IdentifierBuilder
impl UnwindSafe for IdentifierBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more