pub trait IntoField {
    // Required method
    fn into_field(self, name: impl Into<String>) -> Field;
}
Expand description

Indicates that a Field can be created from this type.

Required Methods§

source

fn into_field(self, name: impl Into<String>) -> Field

Create a Field from self.

The type of the Field will depend on the values in self.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T, U, V> IntoField for T
where T: IntoIterator<Item = U>, U: IntoFieldType<ElementType = V>, V: FieldType, V::Array: Array + FromIterator<Option<V>> + 'static,