Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

ModelPtrsTrait

Trait that defines a method for converting a span of model pointers to a span of model indexes.

Type Parameters

  • M: The type of the model.

Methods

  • to_indexes(self: Span<ModelPtr<M>>) -> Span<ModelIndex>: Converts the span of model pointers to a span of model indexes.

Fully qualified path: dojo::model::model::ModelPtrsTrait

pub trait ModelPtrsTrait<M>

Trait functions

to_indexes

Fully qualified path: dojo::model::model::ModelPtrsTrait::to_indexes

fn to_indexes(self: Span<ModelPtr<M>>) -> Span<ModelIndex>

to_member_indexes

Fully qualified path: dojo::model::model::ModelPtrsTrait::to_member_indexes

fn to_member_indexes(self: Span<ModelPtr<M>>, field_selector: felt252) -> Span<ModelIndex>