Skip to content

More methods to OnceCell #77

@tisonkun

Description

@tisonkun
  • get_or_try_init
  • get_mut
  • get_mut_or_init
  • get_mut_or_try_init
  • set
  • try_insert
  • take

You can refer to:

Also, it's possible to add a LazyCell primitive that has a pre-configured initializer (closure).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions