Crate cairo_lang_utils

Crate cairo_lang_utils 

Source
Expand description

Cairo utilities.

Re-exports§

pub use ::smol_str;

Modules§

bigint
byte_array
casts
collection_arithmetics
deque
extract_matches
graph_algos
iterators
logging
ordered_hash_map
ordered_hash_set
small_ordered_map
unordered_hash_map
unordered_hash_set

Macros§

define_short_id
TODO(eytan-starkware): Remove this macro entirely and rely on salsa::interned.
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
OptionFrom
Similar to From / TryFrom, but returns an option.
OptionHelper
Helper operations on Option<T>.

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