Struct rune::macros::Storage[][src]

pub struct Storage { /* fields omitted */ }
Expand description

Storage for synthetic language items.

Implementations

Construct a new number.

The number will be stored in this storage, and will be synthetic (rather than from the source).

Insert the given text into storage and return its id.

This will reuse old storage slots that already contains the given string.

Insert the given owned string into storage and return its id.

This will reuse old storage slots that already contains the given string.

Insert the given text into storage and return its id.

This will reuse old storage slots that already contains the given byte string.

Get the content of the byte string with the specified id and apply the given operation over it.

Get the content of the string with the specified id.

Get the content of the string with the specified id and apply the given operation over it.

Get the content of the byte string with the specified id.

Get the content of the number with the specified id.

Get the content of the number with the specified id and apply the given operation over it.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. 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)

recently added

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.