We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
InOutBufReserved::from_raw
1 parent 2afc28d commit 7bcc303Copy full SHA for 7bcc303
1 file changed
inout/src/reserved.rs
@@ -52,6 +52,7 @@ impl<T> InOutBufReserved<'_, '_, T> {
52
/// must be valid for both reads and writes for `out_len * mem::size_of::<T>()`
53
/// many bytes.
54
/// - `in_ptr` and `out_ptr` must be either equal or non-overlapping.
55
+ /// - `in_len` must be less than or equal to `out_len` (i.e. `in_len <= out_len`).
56
/// - If `in_ptr` and `out_ptr` are equal, then the memory referenced by
57
/// them must not be accessed through any other pointer (not derived from
58
/// the return value) for the duration of lifetime 'a. Both read and write
0 commit comments