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)
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!