amazon-ion / ion-schema-rust

Rust implementation of Ion Schema
https://amazon-ion.github.io/ion-schema/sandbox
Apache License 2.0
12 stars 6 forks source link

Remove usage of `TypeDefinitionImpl` to instead use a `ConstraintBag` #166

Open desaikd opened 1 year ago

desaikd commented 1 year ago

An alternate naming/factoring of TypeDefinitionKindsuch as this:

pub enum TypeDefinition {
    Named(String, ConstraintBag),
    Anonymous(ConstraintBag),
    BuiltIn(BuiltInTypeDefinition),
}

_Originally posted by @popematt in https://github.com/amazon-ion/ion-schema-rust/pull/165#discussion_r1168639719_