mirror of
https://github.com/foo-dogsquared/wiki.git
synced 2025-02-07 21:18:59 +00:00
1 line
2.3 KiB
JSON
1 line
2.3 KiB
JSON
{"pageProps":{"metadata":{"date":"2021-09-14 21:35:47 +08:00","date_modified":"2021-09-14 21:49:14 +08:00","language":"en","source":""},"title":"Rust language","hast":{"type":"root","children":[{"type":"element","tagName":"nav","properties":{"className":"toc"},"children":[{"type":"element","tagName":"ol","properties":{"className":"toc-level toc-level-1"},"children":[]}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"https://doc.rust-lang.org/book/"},"children":[{"type":"text","value":"Rust handbook"}]}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Haskell with the familiarity of C\n"}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"variables are immutable by default and has to be annotated with the "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"mut"}]},{"type":"text","value":" keyword;\n for full immutability, you can declare constants with the "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"const"}]},{"type":"text","value":" keyword and has to be type-annotated\n"}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"namespacing is available through "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"mod"}]},{"type":"text","value":" and all of the items are private by default;\n if you intended an item to be accessed with others, you have to add the "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"pub"}]},{"type":"text","value":" keyword\n"}]}]}]}]},"backlinks":[{"path":"/cli.ripgrep","title":"Command line: ripgrep"},{"path":"/editor.neovim.lua-modules","title":"Neovim Lua modules"}]},"__N_SSG":true} |