Lines Matching refs:Box
1 {{#title rust::Box<T> — Rust ♡ C++}}
2 # rust::Box\<T\>
14 class Box final {
21 Box(Box &&) noexcept;
22 ~Box() noexcept;
24 explicit Box(const T &);
25 explicit Box(T &&);
27 Box &operator=(Box &&) noexcept;
35 static Box in_place(Fields &&...);
37 void swap(Box &) noexcept;
41 static Box from_raw(T *) noexcept;
51 Box\<T\> does not support T being an opaque C++ type. You should use
63 This program uses a Box to pass ownership of some opaque piece of Rust state
82 callback: fn(Box<File>, fst: &str, snd: &str),
83 out: Box<File>,
95 Box::new(File(out)),
107 void f(rust::Fn<void(rust::Box<File>, rust::Str, rust::Str)> callback,
108 rust::Box<File> out);
116 void f(rust::Fn<void(rust::Box<File>, rust::Str, rust::Str)> callback,
117 rust::Box<File> out) {