Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

find_model_field_layout

Find the layout of a model field based on its selector.

Arguments

  • model_layout - The full model layout (must be a Layout::Struct).
  • member_selector - The model field selector.

Returns

Some(Layout) if the field layout has been found, None otherwise.

Fully qualified path: dojo::utils::layout::find_model_field_layout

pub fn find_model_field_layout(model_layout: Layout, member_selector: felt252) -> Option<Layout>