Trait ion_rs::element::IntoAnnotations
source · pub trait IntoAnnotations {
// Required method
fn into_annotations(self) -> Annotations;
}
Expand description
Defines conversion into Annotations
.
This trait allows us to have a blanket implementations that can cover many type combinations
without conflicting in ways that blanket From
implementations can.
With this we can convert for some T
that is string-like (&str
, String
, Symbol
, etc…)
we can convert from collections of that type like [T]
, [T; n]
, Vec<T>
, and
iterators of T
generically.