Skip to main content

TryIntoDType

Trait TryIntoDType 

Source
pub trait TryIntoDType {
    // Required method
    fn try_into_dtype(&self, devices: &[&Device]) -> Result<DType>;
}
Expand description

Type which can be converted to a DType

Required Methods§

Source

fn try_into_dtype(&self, devices: &[&Device]) -> Result<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 TryIntoDType for DType

Implementors§