IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Mojo trait

MutabilityKnown

Exposes whether a value can write the storage it refers to.

Accelerator backends read mutable off kernel argument types to tell a kernel's outputs from its inputs. They match the trait and the member by name, so renaming either reports every argument as immutable.

Implemented traitsโ€‹

AnyType

comptime membersโ€‹

mutableโ€‹

comptime mutable

True if the value can write the storage it refers to.

Was this page helpful?