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

Helper trait for creating a Field from an Array.

Required Methods§

source

fn try_into_field(self, name: impl Into<String>) -> Result<Field, Error>

Create a Field using self as the values.

Errors

This returns an error if the values are not valid field types.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> ArrayIntoField for T
where T: Array + 'static,