Docs.rs
  • cairo-lang-utils-2.4.0-rc4
    • cairo-lang-utils 2.4.0-rc4
    • Docs.rs crate page
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • gilbens-starkware
    • orizi
    • Dependencies
      • env_logger ^0.10.0 normal
      • indexmap ^2.1.0 normal
      • itertools ^0.11.0 normal
      • log ^0.4 normal
      • num-bigint ^0.4 normal
      • num-traits ^0.2 normal
      • parity-scale-codec ^3.6.5 normal
      • schemars ^0.8.15 normal
      • serde ^1.0.192 normal
      • time ^0.3.30 normal
      • env_logger ^0.10.0 dev
      • serde_json ^1.0 dev
      • test-case ^3.2.1 dev
      • test-log ^0.2.13 dev
    • Versions
    • 66.07% of the crate is documented
  • Go to latest stable release
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

Crate cairo_lang_utils

cairo_lang_utils2.4.0-rc4

  • All Items
  • Modules
  • Macros
  • Traits
  • Functions

Crates

  • cairo_lang_utils
?
Change settings

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

  • OptionFrom
    Similar to From / TryFrom, but returns an option.
  • OptionHelper
    Helper operations on Option<T>.
  • ResultHelper
    Helper operations on Option<T>.
  • Upcast
  • UpcastMut

Functions

  • borrow_as_box
    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:
  • write_comma_separated

Results

trait
cairo_lang_utils::OptionFrom
Similar to From / TryFrom, but returns an option.
trait method
cairo_lang_utils::OptionFrom::option_from
No results :(
Try on DuckDuckGo?

Or try looking in one of these:
  • The Rust Reference for technical details about the language.
  • Rust By Example for expository code examples.
  • The Rust Book for introductions to language features and the language itself.
  • Docs.rs for documentation of crates released on crates.io.
trait method
cairo_lang_utils::OptionFrom::option_from