Skip to content

uint vs usize #180

@waywardmonkeys

Description

@waywardmonkeys

There are to_uint methods for TypedRect, TypedSize2D, TypedPoint2D and TypedPoint3D.

However, these methods generate types that are using usize, not uint. This makes the naming confusing.

There seem to be 4 possible ways forward:

  • Leave things as they are now.
  • Change the return types and documentation to uint.
  • Rename the methods to to_usize.
  • Rename these methods to to_usize and then add to_uint methods that actually return uint-based types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions