pub trait ArrayRefIntoField {
    // 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.

Implementations on Foreign Types§

source§

impl ArrayRefIntoField for &dyn Array

source§

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

Implementors§