æ¦è¦: Rustã®ãããã¯æ©æ§ã¯ç°å¸¸çµäºã®å¦çãå®å ¨ã«è¡ãããã«ããããã®åä½ã詳ããã¿ã¦ããã ãããã¯ã¨ã¯ä½ã Rustã«ã¯2ã¤ã®ç°ãªãä¾å¤å¦çæ©æ§ãããã¾ãã çºçæº å¯¾å¦æ¹æ³ ä¾ ããã㯠ããã°ã©ãã³ã°ã¨ã©ã¼ ååã¨ãã¦ææããªã assert!() å¢çå¤åç § Result ä¾å¤çãªå ¥å å¿ è¦ã«å¿ãã¦ææ I/Oã¨ã©ã¼ (File::read) ãã¼ã¹ã¨ã©ã¼ (str::parse) ãããã¯ã¨Resultã®é¢ä¿ã«ã¤ãã¦ã¯TRPL第2ç第9ç« ãæªå®ç¾©åä½ã¨ãããã¯ã®é¢ä¿ã«ã¤ãã¦ã¯Rustonomiconã®Unwindingã®ç« ãªã©ãåèã«ãªãã¾ãã ãããã¯ãæ³å®ããå®å ¨æ§ Rustã§ã¯ãã¨ããããã¯ç¶æ ã§ãæªå®ç¾©åä½ã ãã¯çµ¶å¯¾ã«é¿ããå¿ è¦ãããã¾ãããã®ãã以ä¸ã®é¢æ°ã¯ä¸å¥å ¨ (unsound)ã§ãã use std::ptr; // ãã®é¢æ°ã¯Rustã§ã¯unsound (
{{#tags}}- {{label}}
{{/tags}}