Inspect

Trait Inspect 

Source
pub unsafe trait Inspect<T> {
    // Required method
    fn inspect() -> T;
}
Expand description

Inspect type to get a T.

This is used to get things like type IDs.

§Safety

The returned T for a Self must always be the same.

Required Methods§

Source

fn inspect() -> T

Get the T for Self.

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<'a, T: StaticForm<'a>> Inspect<Lifetime<'a>> for T

Source§

impl<T: 'static> Inspect<Static> for T