Skip to main content

AsDType

Trait AsDType 

Source
pub trait AsDType {
    // Required method
    fn as_dtype(&self) -> DType;
}
Expand description

Trait for types that carry or represent a DType.

Required Methods§

Source

fn as_dtype(&self) -> DType

Return the corresponding DType.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl AsDType for &str

Source§

fn as_dtype(&self) -> DType

Source§

impl AsDType for String

Source§

fn as_dtype(&self) -> DType

Implementors§