Skip to main content

Type

Trait Type 

Source
pub trait Type {
    // Required method
    fn object_type(&self) -> ObjectType;
}
Expand description

Trait to introspect what is the object’s type (stop, route…)

Required Methods§

Source

fn object_type(&self) -> ObjectType

What is the type of the object

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<T: Type> Type for Arc<T>

Implementors§