"use strict";(self.webpackChunkspeice_io=self.webpackChunkspeice_io||[]).push([["1511"],{40808:function(e,t,n){n.r(t),n.d(t,{assets:function(){returnu},contentTitle:function(){returno},default:function(){returnp},frontMatter:function(){returna},metadata:function(){returnr},toc:function(){returnc}});varr=n(47497),i=n(85893),s=n(50065);leta={slug:"2018/09/primitives-in-rust-are-weird",title:"Primitives in Rust are weird (and cool)",date:newDate("2018-09-01T12:00:00.000Z"),authors:["bspeice"],tags:[]},o=void0,u={authorsImageUrls:[void0]},c=[];functionl(e){lett={code:"code",p:"p",pre:"pre",...(0,s.a)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.p,{children:"I wrote a really small Rust program a while back because I was curious. I was 100% convinced it\ncouldn't possibly run:"}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-rust",children:'fn main() {\n println!("{}", 8.to_string())\n}\n'})}),"\n",(0,i.jsx)(t.p,{children:"And to my complete befuddlement, it compiled, ran, and produced a completely sensible output."})]})}functionp(e={}){let{wrapper:t}={...(0,s.a)(),...e.components};returnt?(0,i.jsx)(t,{...e,children:(0,i.jsx)(l,{...e})}):l(e)}},50065:function(e,t,n){n.d(t,{Z:function(){returno},a:function(){returna}});varr=n(67294);leti={},s=r.createContext(i);functiona(e){lett=r.useContext(s);returnr.useMemo(function(){return"function"==typeofe?e(t):{...t,...e}},[t,e])}functiono(e){lett;returnt=e.disableParentContext?"function"==typeofe.components?e.components(i):e.components||i:a(e.components),r.createElement(s.Provider,{value:t},e.children)}},47497:function(e){e.exports=JSON.parse('{"permalink":"/2018/09/primitives-in-rust-are-weird","source":"@site/blog/2018-09-01-primitives-in-rust-are-weird/index.mdx","title":"Primitives in Rust are weird (and cool)","description":"I wrote a really small Rust program a while back because I was curious. I was 100% convinced it","date":"2018-09-01T12:00:00.000Z","tags":[],"readingTime":6.945,"hasTruncateMarker":true,"authors":[{"name":"Bradlee Speice","socials":{"github":"https://github.com/bspeice"},"key":"bspeice","page":null}],"frontMatter":{"slug":"2018/09/primitives-in-rust-are-weird","title":"Primitives in Rust are weird (and cool)","date":"2018-09-01T12:00:00.000Z","authors":["bspeice"],"tags":[]},"unlisted":false,"lastUpdatedAt":1731187596000,"prevItem":{"title":"Isomorphic desktop apps with Rust","permalink":"/2018/09/isomorphic-apps"},"nextItem":{"title":"What I learned porting dateutil to Rust","permalink":"/2018/06/dateutil-parser-to-rust"}}')}}]);