pub trait Tapi: 'static {
// Required methods
fn name() -> &'static str;
fn kind() -> TypeKind;
// Provided methods
fn id() -> TypeId { ... }
fn dependencies() -> Vec<DynTapi> { ... }
fn path() -> Vec<&'static str> { ... }
fn boxed() -> DynTapi
where Self: Sized + 'static { ... }
fn all_dependencies() -> Vec<DynTapi>
where Self: Sized { ... }
}
Required Methods§
Provided Methods§
fn id() -> TypeId
fn dependencies() -> Vec<DynTapi>
fn path() -> Vec<&'static str>
fn boxed() -> DynTapiwhere
Self: Sized + 'static,
fn all_dependencies() -> Vec<DynTapi>where
Self: Sized,
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.