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 forexact_div #139911

Open
Open
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCS-tracking-unimplementedStatus: The feature has not been implemented.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.
@newpavlov

Description

@newpavlov

Feature gate:#![feature(exact_div)]

This is a tracking issue for exact division methods (i.e. for division without remainder) on primitive integer types.

Public API

/// Checked integer division without remainder. Computes `self / rhs`,/// returning `None` if `rhs == 0` or if division remainder is not zero.pubconstfnchecked_exact_div(self,rhs:Self) ->Option<Self>{ ...}/// Integer division without remainder. Computes `self / rhs`,/// panics if `rhs == 0` or if division remainder is not zero.pubconstfnexact_div(self,rhs:Self) ->Self{ ...}/// Integer division without remainder./// Unchecked version of `exact_div`.pubunsafeconstfnunchecked_exact_div(self,rhs:Self) ->Self{ ...}

Steps / History

Unresolved Questions

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCS-tracking-unimplementedStatus: The feature has not been implemented.T-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