検索

phrase: max: clip:
target: order:
Results of 1 - 3 of about 3 for username (0.010 sec.)
構造体を定義し、インスタンス化する - Rust 日本語版 11738
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... います。 #![allow(unused)] fn main() { struct User { username: String, email: String, sign_in_count: u64, active ... きます。 #![allow(unused)] fn main() { struct User { username: String, email: String, sign_in_count: u64, active ... User { email: String::from("someone@example.com"), username: String::from("someusername123"), active: true, si ... います。 #![allow(unused)] fn main() { struct User { username: String, email: String, sign_in_count: u64, active ...
https://man.plustar.jp/rust/book/ch05-01-defining-structs.html - [similar]
トレイト:共通の振る舞いを定義する - Rust 日本語版 8910
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... .author, self.location) } } pub struct Tweet { pub username: String, pub content: String, pub reply: bool, pub ... ummarize(&self) -> String { format!("{}: {}", self.username, self.content) } } } リスト10-13: Summary トレイト ... , Summary, Tweet}; fn main() { let tweet = Tweet { username: String::from("horse_ebooks"), content: String::fr ... Summary for NewsArticle {} pub struct Tweet { pub username: String, pub content: String, pub reply: bool, pub ...
https://man.plustar.jp/rust/book/ch10-02-traits.html - [similar]
Resultで回復可能なエラー - Rust 日本語版 7236
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... :io; use std::io::Read; use std::fs::File; fn read_username_from_file() -> Result<String, io::Error> { let f = ... 演算子 リスト9-7もリスト9-6と同じ機能を有する read_username_from_file の実装ですが、 こちらは ? 演算子を使用し ... :io; use std::io::Read; use std::fs::File; fn read_username_from_file() -> Result<String, io::Error> { let mut ... :io; use std::io::Read; use std::fs::File; fn read_username_from_file() -> Result<String, io::Error> { let mut ...
https://man.plustar.jp/rust/book/ch09-02-recoverable-errors-with-result.html - [similar]
PREV 1 NEXT