pub trait Staticize {
type Static: 'static + ?Sized;
// Provided methods
fn static_type_id() -> TypeId { ... }
fn static_type_name() -> &'static str { ... }
}
Expand description
Provides a handy Static
associated type which should resolve to a 'static
version of
T
for all T
that implement Staticize
.
Required Associated Types§
Provided Methods§
sourcefn static_type_id() -> TypeId
fn static_type_id() -> TypeId
Returns the TypeId
of the 'static
version of T
sourcefn static_type_name() -> &'static str
fn static_type_name() -> &'static str
Returns the type name of the 'static
version of T