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.

Required Methods§

Implementors§

source§

impl<S, I> IntoAnnotations for Iwhere S: Into<Symbol>, I: IntoIterator<Item = S>,