Re: [PATCH v4 1/2] rust/revocable: add try_access_with() convenience method

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Apr 11, 2025 at 2:09 PM Alexandre Courbot <acourbot@xxxxxxxxxx> wrote:
>
> +    /// Returns `None` if the object has been revoked and is therefore no longer accessible, or the

[`None`]

> +    /// result of the closure wrapped in `Some`. If the closure returns a [`Result`] then the

[`Some`]

> +    /// define their own macro that turns the `Option` into a proper error code and flattens the

[`Option`]

(Assuming each one works)

Cheers,
Miguel





[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux