Skip to content
This repository was archived by the owner on Feb 14, 2020. It is now read-only.
This repository was archived by the owner on Feb 14, 2020. It is now read-only.

More friendly conversion using From trait. #4

@katyo

Description

@katyo

I like this crate mainly because it support arbitrary exponent which is not constrained only 0..base^bits range.

But weak side is missing developer friendly conversion methods.
I mean two different aspects here:

  1. Conversion between core rust numeric types such as u*, i*, f* and Fix type.
  2. Conversion between Fix types with different bits, base and exponent.

I think in this case it is pretty usable to implement core rust conversion traits: From, TryTrom, Into, TryInto.

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