PageSourceSearch

https://mojolang.org/assets/js/6f8120f4.395a4c57.js

js mojolang.org collected 2026-10-01 12:00:14 UTC 21,910 bytes, 1 lines download raw bytes

1(self.webpackChunkmodular_fe=self.webpackChunkmodular_fe||[]).push([["14259"],{9403(e,s,t){var n={"./mojo-cheat-sheet-basics-1.1.0dev.pdf":"64094","./mojo-cheat-sheet-compile-time-1.1.0dev.pdf":"56232","./mojo-cheat-sheet-conversions-1.1.0dev.pdf":"92918","./mojo-cheat-sheet-ownership-1.1.0dev.pdf":"99706","./mojo-cheat-sheet-traits-1.1.0dev.pdf":"59248","./mojo-cheat-sheet-types-and-literals-1.1.0dev.pdf":"40345"};function r(e){return t(i(e))}function i(e){if(!t.o(n,e)){var s=Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}return n[e]}r.keys=function(){return Object.keys(n)},r.resolve=i,e.exports=r,r.id=9403},84999(e,s,t){var n={"./version-1.0.0/docs/reference/cheat-sheets/assets/mojo-cheat-sheet-basics-1.0.0.pdf":"38159","./version-1.0.0/docs/reference/cheat-sheets/assets/mojo-cheat-sheet-compile-time-1.0.0.pdf":"97485","./version-1.0.0/docs/reference/cheat-sheets/assets/mojo-cheat-sheet-conversions-1.0.0.pdf":"21973","./version-1.0.0/docs/reference/cheat-sheets/assets/mojo-cheat-sheet-ownership-1.0.0.pdf":"80361","./version-1.0.0/docs/reference/cheat-sheets/assets/mojo-cheat-sheet-traits-1.0.0.pdf":"34377","./version-1.0.0/docs/reference/cheat-sheets/assets/mojo-cheat-sheet-types-and-literals-1.0.0.pdf":"87542","./version-1.1.0/docs/reference/cheat-sheets/assets/mojo-cheat-sheet-basics-1.1.0.pdf":"14413","./version-1.1.0/docs/reference/cheat-sheets/assets/mojo-cheat-sheet-compile-time-1.1.0.pdf":"77103","./version-1.1.0/docs/reference/cheat-sheets/assets/mojo-cheat-sheet-conversions-1.1.0.pdf":"45845","./version-1.1.0/docs/reference/cheat-sheets/assets/mojo-cheat-sheet-ownership-1.1.0.pdf":"99129","./version-1.1.0/docs/reference/cheat-sheets/assets/mojo-cheat-sheet-traits-1.1.0.pdf":"83239","./version-1.1.0/docs/reference/cheat-sheets/assets/mojo-cheat-sheet-types-and-literals-1.1.0.pdf":"85808"};function r(e){return t(i(e))}function i(e){if(!t.o(n,e)){var s=Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}return n[e]}r.keys=function(){return Object.keys(n)},r.resolve=i,e.exports=r,r.id=84999},22140(e,s,t){"use strict";t.r(s),t.d(s,{metadata:()=>n,default:()=>j,frontMatter:()=>l,contentTitle:()=>a,toc:()=>o,assets:()=>c});var n=JSON.parse('{"id":"docs/reference/cheat-sheets/types-and-literals","title":"Mojo types & literals cheat sheet","description":"Numbers, SIMD, conversions, and how to write values.","source":"@site/versioned_docs/version-1.0.0/docs/reference/cheat-sheets/types-and-literals.mdx","sourceDirName":"docs/reference/cheat-sheets","slug":"/docs/reference/cheat-sheets/types-and-literals","permalink":"/1.0.0/docs/reference/cheat-sheets/types-and-literals","draft":false,"unlisted":false,"editUrl":"https://github.com/modular/modular/edit/main/Mojo/docs/site/reference/cheat-sheets/types-and-literals.mdx","tags":[],"version":"1.0.0","frontMatter":{"title":"Mojo types & literals cheat sheet","sidebar_label":"Types and literals","description":"Numbers, SIMD, conversions, and how to write values.","hide_title":true,"hide_table_of_contents":true,"compiler_verified":"2026-08-17, Mojo 1.0.0 (ed45d567)","last_updated":"2026-08-17 (1.0.0 audit)","build_version":"1.0.0"},"sidebar":"referenceSidebar","previous":{"title":"Ownership","permalink":"/1.0.0/docs/reference/cheat-sheets/ownership"},"next":{"title":"Conversions","permalink":"/1.0.0/docs/reference/cheat-sheets/conversions"}}'),r=t(74848),i=t(28453),d=t(14365);let l={title:"Mojo types & literals cheat sheet",sidebar_label:"Types and literals",description:"Numbers, SIMD, conversions, and how to write values.",hide_title:!0,hide_table_of_contents:!0,compiler_verified:"2026-08-17, Mojo 1.0.0 (ed45d567)",last_updated:"2026-08-17 (1.0.0 audit)",build_version:"1.0.0"},a,c={},o=[];function h(e){let s={code:"code",li:"li",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,i.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:["\n",(0,r.jsxs)(d.cj,{slug:"types-and-literals",children:[(0,r.jsxs)(d.Zk,{title:"SIMD is the foundation",children:[(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-mojo",children:"# Every fixed-width number is a 1-lane SIMD\n# Float32 = Scalar[DType.float32]\n#         = SIMD[DType.float32, 1]\n\nvar v = SIMD[DType.float32, 4](1.0, 2.0, 3.0, 4.0)\nvar d = v * 2.0 # [2, 4, 6, 8], all lanes\nv[0] = 5.0 # write one lane\nprint(v.reduce_add()) # sum of lanes (14.0)\n"})}),(0,r.jsxs)(s.p,{children:["Width must be a power of two and is part of the type; its parameter type is ",(0,r.jsx)(s.strong,{children:"SIMDLength"}),"."]})]}),(0,r.jsxs)(d.Zk,{title:"DType: what a lane holds",children:[(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-mojo",children:"SIMD[DType.float32, 4] # DType picks the lane type\nScalar[DType.int] # == Int\n"})}),(0,r.jsxs)(s.p,{children:["Names mirror the types: ",(0,r.jsx)(s.strong,{children:"DType.float32"})," \u2194 ",(0,r.jsx)(s.strong,{children:"Float32"}),",\n",(0,r.jsx)(s.strong,{children:"DType.int8"})," \u2194 ",(0,r.jsx)(s.strong,{children:"Int8"}),", ",(0,r.jsx)(s.strong,{children:"DType.bool"})," \u2194 ",(0,r.jsx)(s.strong,{children:"Bool"}),". A\n",(0,r.jsx)(s.strong,{children:"DType"}
1)," is a name, not a type. It parameterizes ",(0,r.jsx)(s.strong,{children:"SIMD"}),", which\nstores the data."]})]}),(0,r.jsxs)(d.Zk,{title:"Integers",table:"types",children:[(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-mojo",children:"var n = 42 # Int: machine width\nvar u: UInt = 42 # machine width\nvar small: UInt8 = 255\nvar big: Int64 = -9_000_000_000\n"})}),(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Meaning"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"Int / UInt"}),(0,r.jsx)(s.td,{children:"machine word (typically 64-bit)"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"Int8 \u2026 Int256"}),(0,r.jsx)(s.td,{children:"sized signed"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"UInt8 \u2026 UInt256"}),(0,r.jsx)(s.td,{children:"sized unsigned"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"Byte"}),(0,r.jsx)(s.td,{children:"alias for UInt8"})]})]})]}),(0,r.jsxs)(s.p,{children:["Use ",(0,r.jsx)(s.strong,{children:"Int"})," for counts and indices; sized types when bit width is part of the contract. Each is an alias for a 1-lane SIMD."]})]}),(0,r.jsxs)(d.Zk,{title:"Floating point",table:"types",children:[(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Type"}),(0,r.jsx)(s.th,{children:"Meaning"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"Float64"}),(0,r.jsx)(s.td,{children:"IEEE double (default)"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"Float32"}),(0,r.jsx)(s.td,{children:"IEEE single"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"Float16"}),(0,r.jsx)(s.td,{children:"IEEE half"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"BFloat16"}),(0,r.jsx)(s.td,{children:"brain float (ML training)"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"Float8_e4m3fn \u2026"}),(0,r.jsx)(s.td,{children:"8-bit (GPU, ML)"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"Float4_e2m1fn"}),(0,r.jsx)(s.td,{children:"4-bit (Blackwell+)"})]})]})]}),(0,r.jsxs)(s.p,{children:["No bare ",(0,r.jsx)(s.strong,{children:"Float"})," type. Each is an alias for a 1-lane SIMD."]})]}),(0,r.jsxs)(d.Zk,{title:"Bounds & special values",table:"types",children:[(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Meaning"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"bit_width_of[Int]()"})}),(0,r.jsx)(s.td,{children:"64 on most platforms (from std.sys.info)"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"UInt8.MAX"}),(0,r.jsx)(s.td,{children:"255"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"Int8.MIN"}),(0,r.jsx)(s.td,{children:"-128"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"Float32.MAX_FINITE"}),(0,r.jsx)(s.td,{children:"largest finite"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"Float32.MAX"}),(0,r.jsx)(s.td,{children:"may be inf"})]})]})]}),(0,r.jsxs)(s.p,{children:["IEEE floats carry ",(0,r.jsx)(s.strong,{children:"inf"}),", ",(0,r.jsx)(s.strong,{children:"-inf"}),", ",(0,r.jsx)(s.strong,{children:"nan"}),", ",(0,r.jsx)(s.strong,{children:"-0.0"}),"."]})]}),(0,r.jsxs)(d.Zk,{title:"Conversions are explicit",children:[(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-mojo",children:"var i = 42\nvar f = Float64(i) # Int -> Float64\nvar s = Int8(i) # Int -> Int8\nvar back = Int(Int64(i)) # round trip\n\n# between SIMD-based types: .cast[]\nvar g = f.cast[DType.int32]()\n"})}),(0,r.jsx)(s.p,{children:"Variables never convert implicitly; the compiler enforces it. Literals\nconvert only when it can prove the result is exact."})]}),(0,r.jsxs)(d.Zk,{title:"Number literals",table:"types",children:[(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Literal"}),(0,r.jsx)(s.th,{children:"Meaning"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"42"}),(0,r.jsx)(s.td,{children:"decimal Int"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"0xFF  0o52  0b1010"}),(0,r.jsx)(s.td,{children:"hex, octal, binary"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"1_000_000"}),(0,r.jsx)(s.td,{children:"underscores group digits"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"3.14  .5  2.  2.5e-3"}),(0,r.jsx)(s.td,{children:"floats"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"2 ** 200"}),(0,r.jsx)(s.td,{children:"comptime IntLiteral, comptime arbitrary precision"})]})]})]}
1),(0,r.jsxs)(s.p,{children:["Leading zeros on base-10 integers are rejected. At runtime literals\nmaterialize to ",(0,r.jsx)(s.strong,{children:"Int"})," / ",(0,r.jsx)(s.strong,{children:"Float64"}),"."]})]}),(0,r.jsxs)(d.Zk,{title:"Collection literals",children:[(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-mojo",children:'[1, 2, 3] # Array, length in the type\n{"id": 1, "qty": 9} # Dict\n(1, "a", 2.0) # Tuple, mixed types\n'})}),(0,r.jsxs)(s.p,{children:["Unannotated, a bracket literal defaults to ",(0,r.jsx)(s.strong,{children:"Array"}),". It adapts to the\ntype you ask for: ",(0,r.jsx)(s.strong,{children:"var x: List[Int] = [1, 2, 3]"}),"."]})]}),(0,r.jsxs)(d.Zk,{title:"String literals",table:"types",children:[(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-mojo",children:'"double"   \'single\'\n\n# triple quotes: newlines and indentation included\n"""line one\n    line two"""\n\nr"C:\\raw\\path" # raw: no escape processing\n\n"\\u20AC" # lowercase \\u, 4 digits: \u20AC (EURO)\n"\\U0001F44B" # uppercase \\U, 8 digits: \u{1F44B} (above U+FFFF)\n\n# adjacent literals join, same line or across lines:\n"Hello" " world!" # -> "Hello world!"\n"Content of line 1. "\n"Content of line 2."\n'})}),(0,r.jsx)(s.p,{children:"Escapes:"}),(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Escape"}),(0,r.jsx)(s.th,{children:"Meaning"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"\\n  \\t"}),(0,r.jsx)(s.td,{children:"newline, tab"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:'\\"  \\\\'}),(0,r.jsx)(s.td,{children:"quote, backslash"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"\\xHH"}),(0,r.jsx)(s.td,{children:"byte (2 hex digits)"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"\\uHHHH"}),(0,r.jsx)(s.td,{children:"Unicode (4 hex digits)"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"\\UHHHHHHHH"}),(0,r.jsx)(s.td,{children:"Unicode (8 hex digits)"})]})]})]}),(0,r.jsxs)(s.p,{children:["Source is UTF-8. ",(0,r.jsx)(s.strong,{children:"\\u"})," and ",(0,r.jsx)(s.strong,{children:"\\U"})," reject surrogate code points (U+D800 to U+DFFF); code points above U+FFFF need ",(0,r.jsx)(s.strong,{children:"\\U"}),", not a surrogate pair."]})]}),(0,r.jsxs)(d.Zk,{title:"T-strings",children:[(0,r.jsx)(s.pre,{children:(0,r.jsx)(s.code,{className:"language-mojo",children:'var who = "Mojo"\n\nt"Hi, {who}!" # interpolation\n\nt"sum = {1 + 2}" # any expression\n\nt"{{literal braces}}" # -> {literal braces}\n\nrt"raw\\path {who}" # raw t-string: \\ literal, still interpolates\n\nString(t"x = {who}") # cast to String\n'})}),(0,r.jsx)(s.p,{children:"Interpolations evaluate at runtime."})]}),(0,r.jsx)(d.Zk,{title:"Other things",table:"types",children:(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Name"}),(0,r.jsx)(s.th,{children:"Meaning"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"True False"}),(0,r.jsx)(s.td,{children:"boolean values"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"None"}),(0,r.jsx)(s.td,{children:"the only NoneType value"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"Self"}),(0,r.jsx)(s.td,{children:"the enclosing type"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"_"}),(0,r.jsx)(s.td,{children:"discard a value in assignment"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:"..."}),(0,r.jsx)(s.td,{children:"marks a required trait method"})]})]})]})}),(0,r.jsx)(d.Zk,{title:"Sharp edges",children:(0,r.jsxs)(s.ul,{children:["\n",(0,r.jsxs)(s.li,{children:[(0,r.jsx)(s.strong,{children:"Int width is platform-dependent"})," \u2014 use Int64 for a fixed width."]}),"\n",(0,r.jsxs)(s.li,{children:[(0,r.jsx)(s.strong,{children:"Integer overflow wraps"})," \u2014 Int8(127) + 1 is -128."]}),"\n",(0,r.jsxs)(s.li,{children:[(0,r.jsx)(s.strong,{children:"Float-to-int truncates toward zero"})," \u2014 Int(Float64(3.9)) is 3."]}),"\n",(0,r.jsxs)(s.li,{children:[(0,r.jsx)(s.strong,{children:"Float8 needs a GPU"})," \u2014 no runtime CPU arithmetic."]}),"\n",(0,r.jsx)(s.li,{children:(0,r.jsx)(s.strong,{children:"Int128 / Int256 are software-emulated."})}),"\n"]})}),(0,r.jsx)(d.Zk,{title:"Coming from Python",children:(0,r.jsxs)(s.ul,{children:["\n",(0,r.jsxs)(s.li,{children:["No implicit numeric conversion: ",(0,r.jsx)(s.code,{children:"Int + Float64"})," is an error. Cast with\n",(0,r.jsx)(s.code,{children:"Float64(n)"}),", ",(0,r.jsx)(s.code,{children:"Int(x)"}),"."]}),"\n",(0,r.jsxs)(s.li,{children:["Numbers are fixed-width SIMD scalars, not arbitrary-precision ",(0,r.jsx)(s.code,{children:"int"}),"; only\na ",(0,r.jsx)(s.strong,{children:"comptime"})," ",(0,r.jsx)(s.strong,{children:"IntLiteral"})," is unbounded."]}),"\n",(0,r.jsxs)(s.li,{children:["No bare ",(0,r.jsx)(s.code,{children:"float"})," or ",(0,r.jsx)(s.code,{children:"int"})," \u2014 pick ",(0,r.jsx)(s.strong,{children:"Int"}),", ",(0,r.jsx)(s.strong,{children:"Float64"}),", or a\nsized type."]}),"\n"]})}),(0,r.jsx)(d.Zk,{title:"Coming from C++ / Rust",children:(0,r.jsxs)(s.ul,{children:["\n",(0,r.jsxs)(s.li,{children:["Every scalar is a 1-lane ",(0,r.jsx)(s.strong,{children:"SIMD"}),"; vectorizing widens the lane count, not a new\ntype."]}),"\n",(0,r.jsxs)(s.li,{children:["Integer overflow ",(0,r.jsx)(s.strong,{children:"wraps"})," (defined), not C++ undefined behavior or a Rust debug\npanic."]}),"\n",(0,r.jsxs)(s.li,{children:[(0,r.jsx)(s.strong,{children:"DType"})," is a value-level tag that parameterizes ",(0,r.jsx)(s.strong,{children:"SIMD"}),", not a type alias."]}),"\n",(0,r.jsxs)(s.li,{children:[(0,r.jsx)(s.strong,{children:"Int"})," is C++ ",(0,r.jsx)(s.code,{children:"ssize_t"})," / Rust ",(0,r.jsx)(s.code,{children:"isize"}),", not C++ ",(0,r.jsx)(s.code,{children:"int"}),", which is usually 32-bit."]}),"\n"]})})]})]})}function j(e={}){let{wrapper:s}={...(0,i.R)(),...e.components};return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(h,{...e})}):h(e)}},64094(e,s,t){"use strict";t.r(s),t.d(s,{default:()=>n});let n=t.p+"assets/files/mojo-cheat-sheet-basics-1.1.0dev-c27b879f453e7def683eb60bee2c5fcb.pdf"},56232(e,s,t){"use strict";t.r(s),t.d(s,{default:()=>n});let n=t.p+"assets/files/mojo-cheat-sheet-compile-time-1.1.0dev-4b0f9c6fc6b6bea56826a1f06ee6798a.pdf"},92918(e,s,t){"use strict";t.r(s),t.d(s,{default:()=>n});let n=t.p+"assets/files/mojo-cheat-sheet-conversions-1.1.0dev-6b97aa69a139578aa7586bc9a4b99942.pdf"},99706(e,s,t){"use strict";t.r(s),t.d(s,{default:()=>n});let n=t.p+"assets/files/mojo-cheat-sheet-ownership-1.1.0dev-d574dbee63d7d43b97014278a7942905.pdf"},59248(e,s,t){"use strict";t.r(s),t.d(s,{default:()=>n});let n=t.p+"assets/files/mojo-cheat-sheet-traits-1.1.0dev-732e4b53b14d731286ca1d48f4179dc0.pdf"},40345(e,s,t){"use strict";t.r(s),t.d(s,{default:()=>n});let n=t.p+"assets/files/mojo-cheat-sheet-types-and-literals-1.1.0dev-a2797d5902134194cfd1a28097026556.pdf"},38159(e,s,t){"use strict";t.r(s),t.d(s,{default:()=>n});let n=t.p+"assets/files/mojo-cheat-sheet-basics-1.0.0-a54654a94c867a3c56d4a126266d703a.pdf"},97485(e,s,t){"use strict";t.r(s),t.d(s,{default:()=>n});let n=t.p+"assets/files/mojo-cheat-sheet-compile-time-1.0.0-49c0c66860b6aca1435d763643167440.pdf"},21973(e,s,t){"use strict";t.r(s),t.d(s,{default:()=>n});let n=t.p+"assets/files/mojo-cheat-sheet-conversions-1.0.0-df58fa3f116255d0740867f35c6e8efc.pdf"},80361(e,s,t){"use strict";t.r(s),t.d(s,{default:()=>n});let n=t.p+"assets/files/mojo-cheat-sheet-ownership-1.0.0-360488549fcf0809efd2b7f58ffdc5ef.pdf"},34377(e,s,t){"use strict";t.r(s),t.d(s,{default:()=>n});let n=t.p+"assets/files/mojo-cheat-sheet-traits-1.0.0-008dccbe17d30d43834d0d666fbdaf41.pdf"},87542(e,s,t){"use strict";t.r(s),t.d(s,{default:()=>n});let n=t.p+"assets/files/mojo-cheat-sheet-types-and-literals-1.0.0-66079c06f1f9eb4b92b0a37bb6e32698.pdf"},14413(e,s,t){"use strict";t.r(s),t.d(s,{default:()=>n});let n=t.p+"assets/files/mojo-cheat-sheet-basics-1.1.0-a075387d8eacd4defc6b1c77cdc730cc.pdf"},77103(e,s,t){"use strict";t.r(s),t.d(s,{default:()=>n});let n=t.p+"assets/files/mojo-cheat-sheet-compile-time-1.1.0-2129ba4a84c7328ab95dc900e822b2c8.pdf"},45845(e,s,t){"use strict";t.r(s),t.d(s,{default:()=>n});let n=t.p+"assets/files/mojo-cheat-sheet-conversions-1.1.0-8812eef3aa52c16647b7217a20f7de2e.pdf"},99129(e,s,t){"use strict";t.r(s),t.d(s,{default:()=>n});let n=t.p+"assets/files/mojo-cheat-sheet-ownership-1.1.0-4f0916107a09d11d990b32c080576d3b.pdf"},83239(e,s,t){"use strict";t.r(s),t.d(s,{default:()=>n});let n=t.p+"assets/files/mojo-cheat-sheet-traits-1.1.0-2017f44bcc53dfb4edd61bd30dc63f35.pdf"},85808(e,s,t){"use strict";t.r(s),t.d(s,{default:()=>n});let n=t.p+"assets/files/mojo-cheat-sheet-types-and-literals-1.1.0-e28f48c9905f66ab1146ab22fa4253c6.pdf"},14365(e,s,t){"use strict";t.d(s,{eN:()=>f,cj:()=>o,hI:()=>j,No:()=>p,Zk:()=>h,Gq:()=>x});var n=t(74848);t(96540);var r=t(96550),i=t(34308),d=t(26861);let l=t(9403),a=t(84999);
1function c(e,s){if(!e.keys().includes(s))return;let t=e(s);return"string"==typeof t?t:t.default}function o({slug:e,children:s}){var t;let{metadata:h,frontMatter:j}=(0,r.u)(),x=j.build_version,p=function(e,s){if(s)return`mojo-cheat-sheet-${e}-${s}.pdf`}(e,x),f=p?"current"===(t=h.version)?c(l,`./${p}`):c(a,`./version-${t}/docs/reference/cheat-sheets/assets/${p}`):void 0;return(0,n.jsx)(i.e3,{className:"cheat-sheet-docs-page",children:(0,n.jsxs)("div",{className:"sheet_OTYh","data-card":e,children:[(0,n.jsxs)("header",{className:"header_XMUn",children:[(0,n.jsxs)("div",{className:"brand_uMQM",children:[(0,n.jsx)(d.jO,{className:"mark_mGQP",size:50}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h1",{className:"title_N9yA",children:h.title}),(0,n.jsx)("div",{className:"sub_U6k5",children:h.description})]})]}),(0,n.jsxs)("div",{className:"version_feP3",children:[p&&f?(0,n.jsx)("a",{className:"pdfLink_mpm5",href:f,download:p,children:"Download PDF"}):null,x?(0,n.jsxs)("div",{className:"buildVersion_bDyl",children:["v",x]}):null]})]}),(0,n.jsx)("div",{className:"columns_W_TP",children:s})]})})}function h({title:e,summary:s,source:t,table:r,children:i}){return(0,n.jsxs)("section",{className:"panel_YheB","data-table":r,children:[(0,n.jsxs)("h3",{className:"panelTitle_FmaS",children:[(0,n.jsx)("span",{children:e}),s?(0,n.jsx)("span",{className:"summary_AKVq",children:s}):null,t?(0,n.jsx)("span",{className:"source_ULF_",children:t}):null]}),(0,n.jsx)("div",{className:"body_Fy6d",children:i})]})}function j({children:e}){return(0,n.jsx)("div",{className:"intro_yxN9",children:e})}function x({children:e}){return(0,n.jsxs)("span",{className:"yes_ad56",children:["yes",e?(0,n.jsxs)(n.Fragment,{children:[" ",e]}):null]})}function p({children:e}){return(0,n.jsxs)("span",{className:"no_j3P5",children:["no",e?(0,n.jsxs)(n.Fragment,{children:[" ",e]}):null]})}function f({children:e="partial"}){return(0,n.jsx)("span",{className:"mid__IYA",children:e})}},96550(e,s,t){"use strict";t.d(s,{_:()=>l,u:()=>a});var n=t(74848),r=t(96540),i=t(52260);let d=r.createContext(null);function l({children:e,content:s}){let t=(0,r.useMemo)(()=>({metadata:s.metadata,frontMatter:s.frontMatter,assets:s.assets,contentTitle:s.contentTitle,toc:s.toc}),[s]);return(0,n.jsx)(d.Provider,{value:t,children:e})}function a(){let e=(0,r.useContext)(d);if(null===e)throw new i.dV("DocProvider");return e}},28453(e,s,t){"use strict";t.d(s,{R:()=>d,x:()=>l});var n=t(96540);let r={},i=n.createContext(r);function d(e){let s=n.useContext(i);return n.useMemo(function(){return"function"==typeof e?e(s):{...s,...e}},[s,e])}function l(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:d(e.components),n.createElement(i.Provider,{value:s},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.