DType

Trait DType 

Source
pub trait DType:
    'static
    + IsType
    + TypeOf {
    // Provided methods
    fn type_id(&self) -> TypeId { ... }
    fn type_name(&self) -> &'static str { ... }
}
Expand description

DType is a trait designed to provide additional information regarding the type of a particular value.

Provided Methods§

Source

fn type_id(&self) -> TypeId

Source

fn type_name(&self) -> &'static str

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> DType for T
where T: 'static,