Skip to content

Add method is_one to One trait #5

Closed
@cuviper

Description

@cuviper

From @pyfisch on August 5, 2016 17:15

The Zero trait contains two methods: zero returns the number 0 for the given type and is_zero is provided and can be used to check if a number is 0.

The One trait is similar but contains only the method one to create the number 1. Please also add a method to check if a number is one.

Copied from original issue: rust-num/num#214

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions