You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But e.g., Struct, Sequence to not implement Display
So if I have a Struct (perhaps I've checked type and called as_struct on the Element and passed to another function), I can't easily display without something like Element::from(struct_.clone()).to_string()
The text was updated successfully, but these errors were encountered:
This PR performs several superficial cleanup tasks, including:
* Renames the `crate::value` module to `crate::element`
* Renames several types (and corresponding methods) to better align with [the official Ion type names](https://amazon-ion.github.io/ion-docs/docs/spec.html#the-ion-data-model)
* `Boolean` -> `Bool`
* `Integer` -> `Int`
* `UInteger` -> `UInt`
* `SExpression` -> `SExp` (this rename was started in an earlier PR, but additional references to the type name were found)
* Adds `Display` impls for `List`, `SExp`, and `Struct` (addressing #447)
* Adds `Display` impl for `Value` so it can eventually be used independent of `Element`.
* Modifies `Display` for `IonType` to use official type names
value::owned::Element
implementsDisplay
: https://github.com/amzn/ion-rust/blob/main/src/value/owned.rs#L456-L483But e.g.,
Struct
,Sequence
to not implementDisplay
So if I have a
Struct
(perhaps I've checked type and calledas_struct
on theElement
and passed to another function), I can't easily display without something likeElement::from(struct_.clone()).to_string()
The text was updated successfully, but these errors were encountered: