検索
Results of 11 - 20 of about 32 for File (0.045 sec.)
- Crates.ioにクレートを公開する - Rust 日本語版 7974
- The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello,
...
ing: manifest has no description, license, license-file, documentation, homepage or repository. (警告: マニ...
代わりに、 そのファイルの名前を指定するのに license-file を使う必要があります。 どのライセンスが自分のプロジ...
g/crates.io-index` Packaging guessing_game v0.1.0 (file:///projects/guessing_game) Verifying guessing_game...
v0.1.0 (file:///projects/guessing_game) Compiling guessing_game...
- https://man.plustar.jp/rust/book/ch14-02-publishing-to-crates-io.html - [similar]
- 正常なシャットダウンと片付け - Rust 日本語版 7909
- The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello,
...
できるはずです: $ cargo run Compiling hello v0.1.0 (file:///projects/hello) Finished dev [unoptimized + deb...
TcpListener; use std::net::TcpStream; use std::fs::File; use std::thread; use std::time::Duration; fn main...
ep = b"GET /sleep HTTP/1.1\r\n"; let (status_line, filename) = if buffer.starts_with(get) { ("HTTP/1.1 200...
1.1 404 NOT FOUND\r\n\r\n", "404.html") }; let mut file = File::open(filename).unwrap(); let mut contents...
- https://man.plustar.jp/rust/book/ch20-03-graceful-shutdown-and-cleanup.html - [similar]
- シングルスレッドサーバをマルチスレッド化する - Rust 日本語版 7845
- The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello,
...
:prelude::*; use std::net::TcpStream; use std::fs::File; // --snip-- fn handle_connection(mut stream: TcpS...
ep = b"GET /sleep HTTP/1.1\r\n"; let (status_line, filename) = if buffer.starts_with(get) { ("HTTP/1.1 200...
のエラーです: $ cargo check Compiling hello v0.1.0 (file:///projects/hello) error[E0433]: failed to resolve...
入れましょう: $ cargo check Compiling hello v0.1.0 (file:///projects/hello) error[E0599]: no function or as...
- https://man.plustar.jp/rust/book/ch20-02-multithreaded.html - [similar]
- コマンドライン引数を受け付ける - Rust 日本語版 7716
- The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello,
...
。 こんな感じにね: $ cargo run searchstring example-filename.txt 今現在は、 cargo new で生成されたプログラム...
= env::args().collect(); let query = &args[1]; let filename = &args[2]; // {}を探しています println!("Sear...
{}", query); // {}というファイルの中 println!("In file {}", filename); } リスト12-2: クエリ引数とファイル...
はファイル名でしょうから、 2番目の引数への参照は変数 filename に置きました。 一時的にこれらの変数の値を出力し...
- https://man.plustar.jp/rust/book/ch12-01-accepting-command-line-arguments.html - [similar]
- 環境変数を取り扱う - Rust 日本語版 7636
- The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello,
...
ain() { pub struct Config { pub query: String, pub filename: String, pub case_sensitive: bool, } } 論理値を...
)] fn main() { use std::error::Error; use std::fs::File; use std::io::prelude::*; fn search<'a>(query: &st...
str> { vec![] } pub struct Config { query: String, filename: String, case_sensitive: bool, } pub fn run(co...
g: Config) -> Result<(), Box<Error>> { let mut f = File::open(config.filename)?; let mut contents = String...
- https://man.plustar.jp/rust/book/ch12-05-working-with-environment-variables.html - [similar]
- Hello, Cargo! - Rust 日本語版 7571
- The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello,
...
します。 $ cargo build Compiling hello_cargo v0.1.0 (file:///projects/hello_cargo) Finished dev [unoptimized...
でしょう。 $ cargo run Compiling hello_cargo v0.1.0 (file:///projects/hello_cargo) Finished dev [unoptimized...
ません。 $ cargo check Checking hello_cargo v0.1.0 (file:///projects/hello_cargo) Finished dev [unoptimized...
- https://man.plustar.jp/rust/book/ch01-03-hello-cargo.html - [similar]
- テスト駆動開発でライブラリの機能を開発する - Rust 日本語版 7571
- The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello,
...
しましょう: $ cargo test Compiling minigrep v0.1.0 (file:///projects/minigrep) --warnings-- Finished dev [u...
g: Config) -> Result<(), Box<Error>> { let mut f = File::open(config.filename)?; let mut contents = String...
cargo run frog poem.txt Compiling minigrep v0.1.0 (file:///projects/minigrep) Finished dev [unoptimized +...
- https://man.plustar.jp/rust/book/ch12-04-testing-the-librarys-functionality.html - [similar]
- 付録D:便利な開発ツール - Rust 日本語版 7507
- The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello,
...
ことがあるでしょう。 たとえば、下のコードを考えます: Filename: src/main.rs fn do_something() {} fn main() {...
告します: $ cargo build Compiling myprogram v0.1.0 (file:///projects/myprogram) warning: unused variable: `...
用できます。 $ cargo fix Checking myprogram v0.1.0 (file:///projects/myprogram) Fixing src/main.rs (1 fix)...
x によってコードが変更されていることがわかります。 Filename: src/main.rs fn do_something() {} fn main() {...
- https://man.plustar.jp/rust/book/appendix-04-useful-development-tools.html - [similar]
- ライフタイムで参照を検証する - Rust 日本語版 7507
- The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello,
...
セージです: $ cargo run Compiling chapter10 v0.1.0 (file:///projects/chapter10) error[E0597]: `x` does not...
ーが出ます: $ cargo run Compiling chapter10 v0.1.0 (file:///projects/chapter10) error[E0106]: missing lifet...
になります: $ cargo run Compiling chapter10 v0.1.0 (file:///projects/chapter10) error[E0597]: `string2` doe...
セージです: $ cargo run Compiling chapter10 v0.1.0 (file:///projects/chapter10) error[E0515]: cannot return...
- https://man.plustar.jp/rust/book/ch10-03-lifetime-syntax.html - [similar]
- 変数と可変性 - Rust 日本語版 7378
- The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello,
...
得られます: $ cargo run Compiling variables v0.1.0 (file:///projects/variables) Finished dev [unoptimized +...
るでしょう: $ cargo run Compiling variables v0.1.0 (file:///projects/variables) Finished dev [unoptimized +...
- https://man.plustar.jp/rust/book/ch03-01-variables-and-mutability.html - [similar]