Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
You need to sign in or sign up before continuing.
  • linux
  • rust
  • kernel
  • init.rs
Find file BlameHistoryPermalink
  • Benno Lossin's avatar
    rust: init: add `{pin_}chain` functions to `{Pin}Init<T, E>` · 7f8977a7
    Benno Lossin authored Aug 14, 2023
    
    
    The `{pin_}chain` functions extend an initializer: it not only
    initializes the value, but also executes a closure taking a reference to
    the initialized value. This allows to do something with a value directly
    after initialization.
    
    Suggested-by: default avatarAsahi Lina <lina@asahilina.net>
    Reviewed-by: default avatarMartin Rodriguez Reboredo <yakoyoku@gmail.com>
    Signed-off-by: default avatarBenno Lossin <benno.lossin@proton.me>
    Reviewed-by: default avatarAlice Ryhl <aliceryhl@google.com>
    Link: https://lore.kernel.org/r/20230814084602.25699-13-benno.lossin@proton.me
    
    
    [ Cleaned a few trivial nits. ]
    Signed-off-by: default avatarMiguel Ojeda <ojeda@kernel.org>
    7f8977a7
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7