Trait AsDType

Source
pub trait AsDType: Debug {
    // Required methods
    fn dtype(&self) -> &dyn DType;
    fn into_boxed_dtype(self) -> Box<dyn DType>;
}

Required Methods§

Source

fn dtype(&self) -> &dyn DType

Source

fn into_boxed_dtype(self) -> Box<dyn DType>

Implementations on Foreign Types§

Source§

impl AsDType for Box<dyn DType>

Source§

fn dtype(&self) -> &dyn DType

Source§

fn into_boxed_dtype(self) -> Box<dyn DType>

Implementors§

Source§

impl AsDType for Tensor

Source§

impl<'a> AsDType for &'a Tensor

Source§

impl<'a> AsDType for &'a dyn DType

Source§

impl<D: DType> AsDType for D