検索

phrase: max: clip:
target: order:
Results of 1 - 3 of about 3 for call (0.007 sec.)
高階トレイト境界 11886
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... F> Closure<F> where F: Fn(&(u8, u16)) -> &u8, { fn call(&self) -> &u8 { (self.func)(&self.data) } } fn do_ ... { data: (0, 1), func: do_it }; println!("{}", clo.call()); } ライフタイムの節と同じように単純に脱糖しよう ... // where F: Fn(&'??? (u8, u16)) -> &'??? u8, { fn call<'a>(&'a self) -> &'a u8 { (self.func)(&self.data) ... { data: (0, 1), func: do_it }; println!("{}", clo.call()); } } F のトレイト境界は、一体どうすれば表現でき ...
https://man.plustar.jp/rust/nomicon/hrtb.html - [similar]
Drop Check 8408
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... ives it the capability to do so. That attribute is called may_dangle and was introduced in [RFC 1327] (htt ... . Examples of such indirect access are: invoking a callback, via a trait method call. (Future changes to t ... indirect access.) Here is an example of invoking a callback: struct Inspector<T>(T, &'static str, Box<for ... nspector<T> { fn drop(&mut self) { // The `self.2` call could access a borrow e.g. if `T` is `&'a _`. prin ...
https://man.plustar.jp/rust/nomicon/dropck.html - [similar]
print.html 7589
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... うであるとは限りません。 動的サイズの型(DST: Dynamically Sized Type) 実際に、Rust は動的にサイズが決まる型 ... F> Closure<F> where F: Fn(&(u8, u16)) -> &u8, { fn call(&self) -> &u8 { (self.func)(&self.data) } } fn do_ ... { data: (0, 1), func: do_it }; println!("{}", clo.call()); } ライフタイムの節と同じように単純に脱糖しよう ... // where F: Fn(&'??? (u8, u16)) -> &'??? u8, { fn call<'a>(&'a self) -> &'a u8 { (self.func)(&self.data) ...
https://man.plustar.jp/rust/nomicon/print.html - [similar]
PREV 1 NEXT