lkml.org 
[lkml]   [2023]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH v3 02/13] rust: sync: add `assume_init` to `UniqueArc`
    Date

    y86-dev@protonmail.com writes:

    > From: Benno Lossin <y86-dev@protonmail.com>
    >
    > Adds the `assume_init` function to `UniqueArc<MaybeUninit<T>>` that
    > unsafely assumes the value to be initialized and yields a value of type
    > `UniqueArc<T>`. This function is used when manually initializing the
    > pointee of an `UniqueArc`.
    >
    > Signed-off-by: Benno Lossin <y86-dev@protonmail.com>
    > ---

    Reviewed-by: Andreas Hindborg <a.hindborg@samsung.com>

    \
     
     \ /
      Last update: 2023-03-30 14:19    [W:8.424 / U:0.168 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site