タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

rustに関するtackmanのブックマーク (6)

  • Rustのパニック機構 - 簡潔なQ


    : Rust  Rust2       assert!()  Result   I/O (File::read)  (str::parse) ResultTRPL29RustonomiconUnwinding  Rust (unsound) use std::ptr; // Rustunsound (
    Rustのパニック機構 - 簡潔なQ
    tackman
    tackman 2018/10/28
  • RustでOption値やResult値を上手に扱う - Qiita

    この記事の概要 Option<T> 型や Result<T, E> 型の戻り値を、match 式で判別している以下のようなコードを、 fn double_arg(mut argv: env::Args) -> Result<i32, String> { match argv.nth(1) { None => Err("数字を1つ指定してください。".to_owned()), Some(arg1) => { match arg1.parse::<i32>() { Ok(n) => Ok(2 * n), Err(err) => Err(err.to_string()), } } } }

    RustでOption値やResult値を上手に扱う - Qiita
    tackman
    tackman 2018/09/11
  • エラーハンドリング


    : 1 Rust   Rust 使2 Rust使 Rust   Rust
    tackman
    tackman 2018/07/23
    Rustでモナモナしないでこういうのが出来るの良さげ
  • RustでWebフロントエンド開発はできるのか? - 0x90


    Rust Advent Calendar13  RustRustWebRustLLVMLLVMClangemscripten使asm.js/wasmRustemscriptenLLVMwasm backend RustWebJavascriptRustemscriptenOpenGL imple
    RustでWebフロントエンド開発はできるのか? - 0x90
    tackman
    tackman 2018/05/14
  • 関数型プログラマのためのRust | POSTD

    この投稿はEdward Z. Yangが2010年に書いた OCaml for Haskellers 、私自身が今年頭に書いた Haskell for OCaml programmers の流れに沿っています。 目次 プロローグ なぜRustを学ぶべきか 直接対応が可能なもの トレイト:Rustの型クラス アドホックなオブジェクトとメソッド 安全な参照 寿命と記憶域、そして管理オブジェクト オブジェクトの共有:RcとArc マクロとメタプログラミング リテラル 謝辞 参照 Copyright and licensing 注 : この記事の最新版は下記サイトで見られます。 http://science.raphael.poss.name/rust-for-functional-programmers.html 他のフォーマット: Source , PDF プロローグ C言語プログラマのための

    関数型プログラマのためのRust | POSTD
    tackman
    tackman 2018/02/21
  • Foreword - The Rust Programming Language

    Foreword The second edition of the book is no longer distributed with Rust's documentation. If you came here via a link or web search, you may want to check out the current version of the book instead. If you have an internet connection, you can find a copy distributed with Rust 1.30.

    tackman
    tackman 2018/02/08
  • 1