Comprehensive Rust(日语) 202412println!("a: {a}"); println!("b: {b}"); } • See Arc and Mutex if you are in a multi-threaded context. • 共有ポインタを Weak ポインタにダウングレード (downgrade) すると、ドロップされるサイク ルを作成できます。 • Rc のカウントは、参照がある限り有効であることを保証します。 thiserror to avoid writing out trait impls explicitly for custom error types. use anyhow::{bail, Context, Result}; use std::fs; use std::io::Read; use thiserror::Error; struct EmptyUsernameError(String); = String::with_capacity(100); fs::File::open(path) .with_context(|| format!("Failed to open {path}"))? .read_to_string(&mut username) .context("Failed to read")?; if username.is_empty() { bail!(EmptyUsernameError(path0 码力 | 381 页 | 1.36 MB | 10 月前3
KiCad 8.0 Schematic EditorHotkeys). NOTE Many of the actions available through hotkeys are also available in context menus. To access the context menu, right-click in the editing canvas. Different actions will be available depending properties that are editable in a dialog. Use the hotkey or select Properties from the right-click context menu to edit the properties of selected item(s). You can only use the properties dialog to edit you can rotate it, mirror it, and edit its fields, by either using the hotkeys or the right-click context menu. These actions can also be performed after placement. If the Place repeated copies option0 码力 | 194 页 | 7.86 MB | 1 年前3
Krita 5.2 マニュアル
ー の上で して、コンテキストメニューに表示された色を選びます。既に あるカラーラベルを削除するには、コンテキストメニューの'x'マークをク リックします。 Right-click Context Menu Color Labels レイヤーにカラーラベルを割り当てたら、レイヤードッカー右上に位置す るドロップダウンのリストから色をクリックすることで、カラーラベルの 付いたレイヤーをフィルタすることができます。 gamma function to the TRC or transfer function of an image. The TRC in this case being the Tone Response Curve or Tone Reproduction Curve or Transfer function (because color management specialists hate custom gamma curve (see picture here: https://en.wikipedia.org/wiki/SRGB) to emulate the standard response curve of old CRT screens. So sRGB profile is optimized to fit all colors that most common screen0 码力 | 1591 页 | 79.16 MB | 1 年前3
JavaScript Promiseの本 v2メソッドで受け取ることができます) Node.jsをやっている人は、コールバックを書く時に callback(error, response) と第 一引数にエラーオブジェクトを 入れることがよくあると思いますが、Promiseでは役割が resolve/rejectで分担されているので、 resolveにはresponseの値のみをいれるだけで問 題ありません。 次に、 reject の方を見ていきましょう。 XHRで callback(null, req.responseText); } else { callback(new Error(req.statusText), req.response); } }; req.onerror = () => { callback(new Error(req.statusText)); }; 関数で取得したタイトルをコンソールに出力 してみます。 fetch メソッドはPromiseを返します。このPromiseインスタンスはリクエストのレスポンス を表す Response オブジェクトでresolveされます。 Response#json メソッドもPromiseを 110 https://developer.mozilla.org/ja/docs/Web/API/Fetch_API 1170 码力 | 137 页 | 1.17 MB | 1 年前3
PlantUML 1.2019.3 言語リファレンスガイドAuthentication Request Bob --> Alice: Authentication Response Alice -> Bob: Another authentication Request Alice <-- Bob: another authentication Response @enduml 1.2 分類子の宣言 キーワード participant を使って、分類子の並び順を変えることができます。 have a really\nlong name" #99FF99 '/ Alice->Bob: Authentication Request Bob->Alice: Authentication Response Bob->L: Log transaction @enduml You can use the orderkeyword to custom the print order of participant Authentication Response @enduml autonumber 開始で開始番号を、また、autonumber 開始 増分で増分も指定することができます。 @startuml autonumber Bob -> Alice : Authentication Request Bob <- Alice : Authentication Response autonumber 150 码力 | 160 页 | 1.80 MB | 1 年前3
PlantUML 1.2019.2 言語リファレンスガイドAuthentication Request Bob --> Alice: Authentication Response Alice -> Bob: Another authentication Request Alice <-- Bob: another authentication Response @enduml 1.2 分類子の宣言 キーワード participant を使って、分類子の並び順を変えることができます。 have a really\nlong name" #99FF99 '/ Alice->Bob: Authentication Request Bob->Alice: Authentication Response Bob->L: Log transaction @enduml You can use the orderkeyword to custom the print order of participant Authentication Response @enduml autonumber 開始で開始番号を、また、autonumber 開始 増分で増分も指定することができます。 @startuml autonumber Bob -> Alice : Authentication Request Bob <- Alice : Authentication Response autonumber 150 码力 | 160 页 | 1.80 MB | 1 年前3
PlantUML を使った UML の描き方 - PlantUML 言語リファレンスガイド(Version 1.2019.1)Authentication Request Bob --> Alice: Authentication Response Alice -> Bob: Another authentication Request Alice <-- Bob: another authentication Response @enduml 1.2 分類子の宣言 キーワード participant を使って、分類子の並び順を変えることができます。 a really\nlong name" #99FF99 '/ Alice->Bob: Authentication Request Bob->Alice: Authentication Response Bob->L: Log transaction @enduml You can use the orderkeyword to custom the print order of participant を使います。 @startuml autonumber Bob -> Alice : Authentication Request Bob <- Alice : Authentication Response @enduml PlantUML 言語リファレンスガイド (1.2019.1) 4 / 147 1.7 メッセージシーケンスの番号付け 1 シーケンス図 autonumber 開始で開始番号を、また、autonumber0 码力 | 148 页 | 1.92 MB | 1 年前3
PlantUML 1.2019.6 言語リファレンスガイドAuthentication Request Bob --> Alice: Authentication Response Alice -> Bob: Another authentication Request Alice <-- Bob: another authentication Response @enduml 1.2 分類子の宣言 キーワード participant を使って、分類子の並び順を変えることができます。 have a really\nlong name" #99FF99 '/ Alice->Bob: Authentication Request Bob->Alice: Authentication Response Bob->L: Log transaction @enduml order キーワードを使って、分類子が表示される順序を変更することもできます。 @startuml participant Authentication Response @enduml autonumber 開始で開始番号を、また、autonumber 開始 増分で増分も指定することができます。 @startuml autonumber Bob -> Alice : Authentication Request Bob <- Alice : Authentication Response autonumber 150 码力 | 174 页 | 1.99 MB | 1 年前3
PlantUML 1.2019.4 言語リファレンスガイドAuthentication Request Bob --> Alice: Authentication Response Alice -> Bob: Another authentication Request Alice <-- Bob: another authentication Response @enduml 1.2 分類子の宣言 キーワード participant を使って、分類子の並び順を変えることができます。 have a really\nlong name" #99FF99 '/ Alice->Bob: Authentication Request Bob->Alice: Authentication Response Bob->L: Log transaction @enduml order キーワードを使って、分類子が表示される順序を変更することもできます。 @startuml participant Authentication Response @enduml autonumber 開始で開始番号を、また、autonumber 開始 増分で増分も指定することができます。 @startuml autonumber Bob -> Alice : Authentication Request Bob <- Alice : Authentication Response autonumber 150 码力 | 168 页 | 1.90 MB | 1 年前3
PlantUML 1.2019.9 言語リファレンスガイドAuthentication Request Bob --> Alice: Authentication Response Alice -> Bob: Another authentication Request Alice <-- Bob: another authentication Response @enduml 1.2 分類子の宣言 キーワード participant を使って、分類子の並び順を変えることができます。 have a really\nlong name" #99FF99 '/ Alice->Bob: Authentication Request Bob->Alice: Authentication Response Bob->L: Log transaction @enduml order キーワードを使って、分類子が表示される順序を変更することもできます。 @startuml participant Authentication Response @enduml autonumber 開始で開始番号を、また、autonumber 開始 増分で増分も指定することができます。 @startuml autonumber Bob -> Alice : Authentication Request Bob <- Alice : Authentication Response autonumber 150 码力 | 175 页 | 2.02 MB | 1 年前3
共 19 条
- 1
- 2













