検索
Results of 1 - 3 of about 3 for character (0.011 sec.)
- 文字列 - Rust By Example 日本語版 11775
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
string.trim_matches(chars_to_trim); println!("Used characters: {}", trimmed_str); // Heap allocate a string //...
ultiple ways to write string literals with special characters in them. All result in a similar &str so it's bes...
, which all result in &[u8; N] . Generally special characters are escaped with a backslash character: \ . This...
way you can add any character to your string, even unprintable ones and ones tha...
- https://man.plustar.jp/rust/example/std/str.html - [similar]
- 型キャスティング - Rust By Example 日本語版 8798
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
// 明示的な型変換 let integer = decimal as u8; let character = integer as char; // Error! There are limitations...
float cannot be directly converted to a char. let character = decimal as char; // FIXME ^ Comment out this lin...
ntln!("Casting: {} -> {} -> {}", decimal, integer, character); // when casting any value to an unsigned type, T...
- https://man.plustar.jp/rust/example/types/cast.html - [similar]
- Rust By Example 日本語版 7310
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
// 明示的な型変換 let integer = decimal as u8; let character = integer as char; // Error! There are limitations...
float cannot be directly converted to a char. let character = decimal as char; // FIXME ^ Comment out this lin...
ntln!("Casting: {} -> {} -> {}", decimal, integer, character); // when casting any value to an unsigned type, T...
- https://man.plustar.jp/rust/example/print.html - [similar]
PREV
1
NEXT