 Comprehensive Rust(日语) 202412println!("r1 is: {}", *r1); *r1 = String::from("uhoh"); println!("r2 is: {}", *r2); } // 安全でないため、NOT SAFE。このような記述をしないでください。 /* let r3: &String = unsafe { &*r1 }; drop(s); println!("r3 is: {}", *r3); */ } 参照をキャストしてポインタを取得した場合、基になるオブジェクトが存続しなければならず、 他のいかなる参照を通してもそのメモリにアクセスがないこと ほとんどの場合、ポインタも適切にアラインされる必要があります。 ”NOT SAFE”というコメントがあるところは、よくある UB バグの例を示しています。*r1 のライフタ イムは 'static であるため、r3 の型は&'static String となり、s より長く存続します。ポイン これは手動で行うこともできます。 unsafe extern "C" { safe fn abs(x: i32) -> i32; } fn main() { let x = -42; let abs_x = abs(x); println!("{x}, {abs_x}"); } We already saw this in the Safe FFI Wrapper exercise. これは、ターゲ0 码力 | 381 页 | 1.36 MB | 10 月前3 Comprehensive Rust(日语) 202412println!("r1 is: {}", *r1); *r1 = String::from("uhoh"); println!("r2 is: {}", *r2); } // 安全でないため、NOT SAFE。このような記述をしないでください。 /* let r3: &String = unsafe { &*r1 }; drop(s); println!("r3 is: {}", *r3); */ } 参照をキャストしてポインタを取得した場合、基になるオブジェクトが存続しなければならず、 他のいかなる参照を通してもそのメモリにアクセスがないこと ほとんどの場合、ポインタも適切にアラインされる必要があります。 ”NOT SAFE”というコメントがあるところは、よくある UB バグの例を示しています。*r1 のライフタ イムは 'static であるため、r3 の型は&'static String となり、s より長く存続します。ポイン これは手動で行うこともできます。 unsafe extern "C" { safe fn abs(x: i32) -> i32; } fn main() { let x = -42; let abs_x = abs(x); println!("{x}, {abs_x}"); } We already saw this in the Safe FFI Wrapper exercise. これは、ターゲ0 码力 | 381 页 | 1.36 MB | 10 月前3
 Krita 5.2 マニュアル
software do nowadays; when they don't they usually default to sRGB, so in the case described here we're safe ) and then convert it to the profile associated to the monitor (which very few software actually orthographic with Open existing Document as Untitled Document so that we don't save over it. Our game-safe isometric has its angle at two pixels horizontal is one pixel vertical. So, we shear the ortho graphics percentages and Bytes, so you can specify precisely. Krita will not take up more space than this, making it safe for you to run an internet browser or music on the background. Internal Pool A feature for advanced0 码力 | 1591 页 | 79.16 MB | 1 年前3 Krita 5.2 マニュアル
software do nowadays; when they don't they usually default to sRGB, so in the case described here we're safe ) and then convert it to the profile associated to the monitor (which very few software actually orthographic with Open existing Document as Untitled Document so that we don't save over it. Our game-safe isometric has its angle at two pixels horizontal is one pixel vertical. So, we shear the ortho graphics percentages and Bytes, so you can specify precisely. Krita will not take up more space than this, making it safe for you to run an internet browser or music on the background. Internal Pool A feature for advanced0 码力 | 1591 页 | 79.16 MB | 1 年前3
 Debian リファレンス v2.124注意 コマンド名を含めて固有名詞はその位置によらず大文字・小文字の区別を保持します。 本文中に引用されるコマンドの断片はダブルクォーテションマーク間にタイプライターフォントで書き”aptitude safe-upgrade” のように表現されます。 本文中に設定ファイルから引用された文字データーはダブルクォーテションマーク間にタイプライターフォントで 書き”deb-src” のように表現されます。 アーカイブメタデーターをリモートアーカイブから取得 2. APT が使えるようローカルメタデーターの再構築と更新 • 更新 (”apt upgrade” と”apt full-upgrade” か、”aptitude safe-upgrade” と”aptitude full-upgrade” か、”apt-get upgrade” と”apt-get dist-upgrade”): 1. 全てのインストール済みパッ aptitude install foo apt-get install foo ”foo” パッケージの候補バージョンをその依存関係とともにイ ンストール apt upgrade aptitude safe-upgrade apt-get upgrade 他のパッケージを削除すること無くインストール済みパッケー ジの候補バージョンをインストール apt full-upgrade aptitude0 码力 | 287 页 | 1.60 MB | 1 年前3 Debian リファレンス v2.124注意 コマンド名を含めて固有名詞はその位置によらず大文字・小文字の区別を保持します。 本文中に引用されるコマンドの断片はダブルクォーテションマーク間にタイプライターフォントで書き”aptitude safe-upgrade” のように表現されます。 本文中に設定ファイルから引用された文字データーはダブルクォーテションマーク間にタイプライターフォントで 書き”deb-src” のように表現されます。 アーカイブメタデーターをリモートアーカイブから取得 2. APT が使えるようローカルメタデーターの再構築と更新 • 更新 (”apt upgrade” と”apt full-upgrade” か、”aptitude safe-upgrade” と”aptitude full-upgrade” か、”apt-get upgrade” と”apt-get dist-upgrade”): 1. 全てのインストール済みパッ aptitude install foo apt-get install foo ”foo” パッケージの候補バージョンをその依存関係とともにイ ンストール apt upgrade aptitude safe-upgrade apt-get upgrade 他のパッケージを削除すること無くインストール済みパッケー ジの候補バージョンをインストール apt full-upgrade aptitude0 码力 | 287 页 | 1.60 MB | 1 年前3
共 3 条
- 1














