Skip to main content
Log in

Mojo struct

ElementLayout

struct ElementLayout[rank: Int, shape: IndexList[rank]]

Fields

  • stride (IndexList[rank]):

Implemented traits

AnyType, CollectionElement, Copyable, ExplicitlyCopyable, Movable, Stringable, UnknownDestructibility, Writable

Methods

__init__

__init__(out self)

__init__(out self, *, other: Self)

Explicitly construct a deep copy of the provided value.

Args:

  • other (Self): The value to copy.

__str__

__str__(self) -> String

write_to

write_to[W: Writer](self, mut writer: W)