Trait arrow_udf_python::IntoField

source ·
pub trait IntoField: Sealed {
    // Required method
    fn into_field(self, default_name: &str) -> Field;
}
Expand description

Converts a type into a Field. Implementors are DataType and Field.

Required Methods§

source

fn into_field(self, default_name: &str) -> Field

Converts into a Field.

  • For Field, it is returned as is.
  • For DataType, a new Field is created with the given default_name.

Implementations on Foreign Types§

source§

impl IntoField for DataType

source§

fn into_field(self, default_name: &str) -> Field

source§

impl IntoField for Field

source§

fn into_field(self, _default_name: &str) -> Field

Implementors§