Trait rai_core::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