Crate cairo_lang_utils

Source
Expand description

Cairo utilities.

Modules§

bigint
byte_array
casts
collection_arithmetics
extract_matches
graph_algos
iterators
ordered_hash_map
ordered_hash_set
unordered_hash_map
unordered_hash_set

Macros§

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

Traits§

Intern
LookupIntern
A trait for the lookup_intern method for short IDs (returning the long ID).
OptionFrom
Similar to From / TryFrom, but returns an option.
OptionHelper
Helper operations on Option<T>.
Upcast
UpcastMut

Functions§

borrow_as_box
Borrows a mutable reference as Box for the lifespan of this function.
require
Returns Some(()) if the condition is true, otherwise None.
write_comma_separated