Crate radix_engine_interface
source ·Re-exports§
pub extern crate radix_engine_common;
pub extern crate sbor;
Modules§
- RE bech32 address library.
- RE crypto library
- RE scrypto data model.
- macros 🔒
- RE math library.
- RE network identifier model.
- Each module should have its own prelude, which:
- RE time library.
Macros§
- Creates a
Decimal
from literals. It is a compile-time macro. It allows to declare constants and statics. Example: const D1: Decimal = dec!(“1111.11111”) const D2: Decimal = dec!(“-1111.11111”) const D3: Decimal = dec!(1) const D4: Decimal = dec!(-1_0000_000_u128) - Creates a safe integer from literals. You must specify the type of the integer you want to create.
- Creates a
PreciseDecimal
from literals. It is a compile-time macro. It allows to declare constants and statics. Example: const D1: PreciseDecimal = pdec!(“1111.11111”) const D2: PreciseDecimal = pdec!(“-1111.11111”) const D3: PreciseDecimal = pdec!(1) const D4: PreciseDecimal = pdec!(-1_0000_000_u128) - A macro for implementing sbor traits (for statically sized types).
Traits§
- The
Categorize
trait marks a rust type as having a fixed value kind for SBOR encoding/decoding. - A data structure that can be decoded from a byte array using SBOR.
- A data structure that can be serialized into a byte array using SBOR.
Derive Macros§
- Derive code that returns the value kind.
- Derive code that decodes this data structure from a byte array.
- Derive code that encodes this data structure
- Derives code for categorizing a struct or enum with Manifest value model.
- Derives code for decoding a struct or enum with Manifest value model.
- Derives code for encoding a struct or enum with Manifest value model.
- Derives code for categorizing a struct or enum with Scrypto value model.
- Derives code for decoding a struct or enum with Scrypto value model.
- Derives code for encoding a struct or enum with Scrypto value model.
- Derive code for implementing the required logic to mark a type as being an event.