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