Crate cairo_lang_utils

source ·
Expand description

Cairo utilities.

Modules

Macros

Macro to verify an expression matches a pattern and extract its fields.
Macro to try to evaluate an expression as a pattern and extract its fields.

Traits

Similar to From / TryFrom, but returns an option.
Helper operations on Option<T>.
Helper operations on Option<T>.

Functions

Borrows a mutable reference as Box for the lifespan of this function. Runs the given closure with the boxed value as a parameter. The closure is expected to return a boxed value, whose changes will be reflected on the mutable reference. Example: