Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

utils

Fully qualified path: dojo::utils

Modules

default
hash
key
layout
misc
naming
serde

Re-exports:

bytearray_hashCompute the poseidon hash of a serialized ByteArray
selector_from_hashesComputes the selector from two hashes.
selector_from_namesComputes the selector of a resource from the namespace and the name.
selector_from_namespace_and_nameComputes the selector namespace hash and the name of the resource.
combine_keyCombine parent and child keys to build one full key.
entity_id_from_keysComputes the entity id from the key.
entity_id_from_serialized_keysComputes the entity id from the keys….
find_field_layoutfind a field with its selector in a list of layouts
find_model_field_layoutFind the layout of a model field based on its selector….
sum_sizesComputes the sum of the provided sizes. If at least one size is None, returns None.
is_name_validVerifies that the provided name is valid according to the following RegEx: ^ a-zA-Z0-9_ +$
deserialize_unwrap
serialize_inline