Skip to content
This repository was archived by the owner on Sep 12, 2018. It is now read-only.
This repository was archived by the owner on Sep 12, 2018. It is now read-only.

Add helper functions constructing OrderedFloat and BigInt to edn crate #198

@ncalexan

Description

@ncalexan

Right now, real consumers of edn::Value need to import OrderedFloat and BigInt in order to pattern match Value completely. That means to extern crate declarations, which is awkward. This ticket tracks exposing simple constructors in the edn crate. For example, maybe

impl Value {
    from_float(x: f64) -> Value { ... }
    from_bigint(x: &str) -> Value { ... }
}

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions