Trait tea_dtype::GetDataType

source ·
pub trait GetDataType {
    // Required method
    fn dtype() -> DataType
       where Self: Sized;
}
Expand description

A trait for types that can provide their corresponding DataType.

Required Methods§

source

fn dtype() -> DataType
where Self: Sized,

Returns the DataType corresponding to the implementing type.

§Returns

A DataType enum variant representing the type.

Implementations on Foreign Types§

source§

impl GetDataType for Option<bool>

source§

impl GetDataType for Option<f32>

source§

impl GetDataType for Option<f64>

source§

impl GetDataType for Option<i32>

source§

impl GetDataType for Option<i64>

source§

impl GetDataType for Option<usize>

source§

impl GetDataType for bool

source§

impl GetDataType for f32

source§

impl GetDataType for f64

source§

impl GetDataType for i32

source§

impl GetDataType for i64

source§

impl GetDataType for u8

source§

impl GetDataType for u64

source§

impl GetDataType for usize

source§

impl GetDataType for String

source§

impl GetDataType for Vec<usize>

source§

impl<'a> GetDataType for &'a str

Implementors§