Skip to main content

Ty

Trait Ty 

Source
pub trait Ty {
    // Required method
    fn ty(&self) -> Type;

    // Provided method
    fn inner_ty(&self) -> Type { ... }
}

Required Methods§

Source

fn ty(&self) -> Type

get the type of an instance.

Provided Methods§

Source

fn inner_ty(&self) -> Type

get the inner type of an instance (not recursive).

e.g. the inner type of array<vec3<u32>> is vec3<u32>.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§