Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Tracking Issue for #138068: AddResult::map_or_default andOption::map_or_default #138099

Open
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.
@fpervaiz

Description

@fpervaiz

Feature gate:#![feature("result_option_map_or_default")]

This is a tracking issue for addingResult::map_or_default() andOption::map_or_default(). Open RFCrust-lang/rfcs#3148

Public API

// core::resultimpl<T,E>Result<T,E>{pubfnmap_or_default<U,F>(self,f:F) ->UwhereU:Default,F:FnOnce(T) ->U{ ..}}
// core::optionimpl<T>Option<T>{pubfnmap_or_default<U,F>(self,f:F) ->UwhereU:Default,F:FnOnce(T) ->U{ ..}}

Steps / History

Unresolved Questions

  • None yet.

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2026 Movatter.jp