ISibboI / evalexpr

A powerful expression evaluation crate 🦀.
GNU Affero General Public License v3.0
320 stars 52 forks source link

Add `TryFrom` conversions for `evalexpr::Value` #105

Closed jgrund closed 2 years ago

jgrund commented 2 years ago

It would be useful if evalexpr::Value implemented TryFrom for it's underlying enum values. Right now there are a few as_* methods to get at the underlying type.

ISibboI commented 2 years ago

Value already implements From<X> for all X that can be value types.

You are asking to add impl TryFrom<Value> for X {...}?

jgrund commented 2 years ago

You are asking to add impl TryFrom<Value> for X {...}?

Yes