linux-stable/rust/kernel
Wedson Almeida Filho 7118594466 rust: types: implement ForeignOwnable for the unit type
This allows us to use the unit type `()` when we have no object whose
ownership must be managed but one implementing the `ForeignOwnable`
trait is needed.

Signed-off-by: Wedson Almeida Filho <wedsonaf@gmail.com>
Reviewed-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Reviewed-by: Andreas Hindborg <a.hindborg@samsung.com>
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2023-02-01 13:24:36 +01:00
..
sync rust: sync: add support for dispatching on Arc and ArcBorrow. 2023-01-16 23:48:06 +01:00
allocator.rs
build_assert.rs rust: build_assert: add build_{error,assert}! macros 2022-12-04 01:59:16 +01:00
error.rs rust: error: add From implementations for Error 2022-12-04 01:59:15 +01:00
lib.rs rust: types: introduce ForeignOwnable 2023-02-01 13:24:07 +01:00
prelude.rs rust: prelude: prevent doc inline of external imports 2023-01-16 23:49:46 +01:00
print.rs rust: print: add pr_cont! macro 2022-12-01 20:12:44 +01:00
static_assert.rs rust: static_assert: add static_assert! macro 2022-12-04 01:59:16 +01:00
std_vendor.rs rust: std_vendor: add dbg! macro based on std's one 2022-12-04 01:59:16 +01:00
str.rs rust: str: add fmt! macro 2022-12-04 01:59:16 +01:00
sync.rs rust: sync: introduce UniqueArc 2023-01-16 23:48:06 +01:00
types.rs rust: types: implement ForeignOwnable for the unit type 2023-02-01 13:24:36 +01:00