Skip to content

Handle type restrictions #2

@dbrgn

Description

@dbrgn

The Gerber spec specifies a list of data types:

  • Integers
  • Decimals
  • Coordinate Numbers
  • Hexadecimal
  • Names
  • Strings

We should make sure that only valid values accrding to the spec can be passed in to types expecting these basic data types.

This means that we probably won't get around creating custom wrapper types.

Is there a way to create range types in Rust, e.g. a 32 bit signed integer >= 1? Or strings that only accept certain unicode codepoints? Ideally as much as possible at compile time.

@rnestler @dns2utf8

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