diff options
| author | Gary Guo <gary@garyguo.net> | 2026-03-02 16:42:34 +0000 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2026-03-07 23:02:45 +0100 |
| commit | 08da98f18f4f99aa16838397b76086d2d1d364b3 (patch) | |
| tree | 5300a4e3cf293bab3d1336c6f9046e2bb9296fe4 /scripts/stackdelta | |
| parent | 11439c4635edd669ae435eec308f4ab8a0804808 (diff) | |
rust: ptr: add `KnownSize` trait to support DST size info extraction
Add a `KnownSize` trait which is used obtain a size from a raw pointer's
metadata. This makes it possible to obtain size information on a raw slice
pointer. This is similar to Rust `core::mem::size_of_val_raw` which is not
yet stable.
Signed-off-by: Gary Guo <gary@garyguo.net>
Reviewed-by: Benno Lossin <lossin@kernel.org>
Acked-by: Miguel Ojeda <ojeda@kernel.org>
Link: https://patch.msgid.link/20260302164239.284084-2-gary@kernel.org
[ Fix wording in doc-comment. - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'scripts/stackdelta')
0 files changed, 0 insertions, 0 deletions
