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§
Sourcefn object_type(&self) -> ObjectType
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".