pub trait TypePath: 'static {
    // Required methods
    fn type_path() -> &'static str;
    fn short_type_path() -> &'static str;

    // Provided methods
    fn type_ident() -> Option<&'static str> { ... }
    fn crate_name() -> Option<&'static str> { ... }
    fn module_path() -> Option<&'static str> { ... }
}
Expand description

A static accessor to type paths and names.

The engine uses this trait over std::any::type_name for stability and flexibility.

This trait is automatically implemented by the #[derive(Reflect)] macro and allows type path information to be processed without an instance of that type.

Implementors may have difficulty in generating references with static lifetimes. Luckily, this crate comes with some utility structs, to make generating these statics much simpler.

§Stability

Certain parts of the engine, e.g. (de)serialization, rely on type paths as identifiers for matching dynamic values to concrete types.

Using std::any::type_name, a scene containing my_crate::foo::MyComponent would break, failing to deserialize if the component was moved from the foo module to the bar module, becoming my_crate::bar::MyComponent. This trait, through attributes when deriving itself or Reflect, can ensure breaking changes are avoidable.

The only external factor we rely on for stability when deriving is the module_path! macro, only if the derive does not provide a #[type_path = "..."] attribute.

§Anonymity

Some methods on this trait return Option<&'static str> over &'static str because not all types define all parts of a type path, for example the array type [T; N].

Such types are ‘anonymous’ in that they have only a defined type_path and short_type_path and the methods crate_name, module_path and type_ident all return None.

Primitives are treated like anonymous types, except they also have a defined type_ident.

§Example

use bevy_reflect::TypePath;

// This type path will not change with compiler versions or recompiles,
// although it will not be the same if the definition is moved.
#[derive(TypePath)]
struct NonStableTypePath;

// This type path will never change, even if the definition is moved.
#[derive(TypePath)]
#[type_path = "my_crate::foo"]
struct StableTypePath;

// Type paths can have any number of path segments.
#[derive(TypePath)]
#[type_path = "my_crate::foo::bar::baz"]
struct DeeplyNestedStableTypePath;

// Including just a crate name!
#[derive(TypePath)]
#[type_path = "my_crate"]
struct ShallowStableTypePath;

// We can also rename the identifier/name of types.
#[derive(TypePath)]
#[type_path = "my_crate::foo"]
#[type_name = "RenamedStableTypePath"]
struct NamedStableTypePath;

// Generics are also supported.
#[derive(TypePath)]
#[type_path = "my_crate::foo"]
struct StableGenericTypePath<T, const N: usize>([T; N]);

Required Methods§

source

fn type_path() -> &'static str

Returns the fully qualified path of the underlying type.

Generic parameter types are also fully expanded.

For Option<Vec<usize>>, this is "core::option::Option<alloc::vec::Vec<usize>>".

source

fn short_type_path() -> &'static str

Returns a short, pretty-print enabled path to the type.

Generic parameter types are also shortened.

For Option<Vec<usize>>, this is "Option<Vec<usize>>".

Provided Methods§

source

fn type_ident() -> Option<&'static str>

Returns the name of the type, or None if it is anonymous.

Primitive types will return Some.

For Option<Vec<usize>>, this is "Option".

source

fn crate_name() -> Option<&'static str>

Returns the name of the crate the type is in, or None if it is anonymous.

For Option<Vec<usize>>, this is "core".

source

fn module_path() -> Option<&'static str>

Returns the path to the module the type is in, or None if it is anonymous.

For Option<Vec<usize>>, this is "core::option".

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl TypePath for bool
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for char
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for f32
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for f64
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for i8
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for i16
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for i32
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for i64
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for i128
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for isize
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for str
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for u8
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for u16
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for u32
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for u64
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for u128
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for ()

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

impl TypePath for usize
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for String
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for RangeFull
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for Duration
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for OsString
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for RandomState
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for Path
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for PathBuf
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for Instant
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for Uuid
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for NonZeroI8
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for NonZeroI16
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for NonZeroI32
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for NonZeroI64
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for NonZeroI128
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for NonZeroIsize
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for NonZeroU8
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for NonZeroU16
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for NonZeroU32
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for NonZeroU64
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for NonZeroU128
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for NonZeroUsize
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl TypePath for DefaultHashBuilder
where Self: Any + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl<'a: 'static, T> TypePath for Cow<'a, T>
where Self: Any + Send + Sync, T: TypePath + ToOwned + ?Sized,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl<K, V, S> TypePath for HashMap<K, V, S>
where Self: Any + Send + Sync, K: TypePath, V: TypePath, S: TypePath,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl<K, V, S> TypePath for HashMap<K, V, S>
where Self: Any + Send + Sync, K: TypePath, V: TypePath, S: TypePath,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl<P0: TypePath> TypePath for (P0,)

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

impl<P1: TypePath, P0: TypePath> TypePath for (P1, P0)

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

impl<P1: TypePath, P2: TypePath, P0: TypePath> TypePath for (P1, P2, P0)

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

impl<P1: TypePath, P2: TypePath, P3: TypePath, P0: TypePath> TypePath for (P1, P2, P3, P0)

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

impl<P1: TypePath, P2: TypePath, P3: TypePath, P4: TypePath, P0: TypePath> TypePath for (P1, P2, P3, P4, P0)

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

impl<P1: TypePath, P2: TypePath, P3: TypePath, P4: TypePath, P5: TypePath, P0: TypePath> TypePath for (P1, P2, P3, P4, P5, P0)

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

impl<P1: TypePath, P2: TypePath, P3: TypePath, P4: TypePath, P5: TypePath, P6: TypePath, P0: TypePath> TypePath for (P1, P2, P3, P4, P5, P6, P0)

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

impl<P1: TypePath, P2: TypePath, P3: TypePath, P4: TypePath, P5: TypePath, P6: TypePath, P7: TypePath, P0: TypePath> TypePath for (P1, P2, P3, P4, P5, P6, P7, P0)

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

impl<P1: TypePath, P2: TypePath, P3: TypePath, P4: TypePath, P5: TypePath, P6: TypePath, P7: TypePath, P8: TypePath, P0: TypePath> TypePath for (P1, P2, P3, P4, P5, P6, P7, P8, P0)

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

impl<P1: TypePath, P2: TypePath, P3: TypePath, P4: TypePath, P5: TypePath, P6: TypePath, P7: TypePath, P8: TypePath, P9: TypePath, P0: TypePath> TypePath for (P1, P2, P3, P4, P5, P6, P7, P8, P9, P0)

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

impl<P1: TypePath, P2: TypePath, P3: TypePath, P4: TypePath, P5: TypePath, P6: TypePath, P7: TypePath, P8: TypePath, P9: TypePath, P10: TypePath, P0: TypePath> TypePath for (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P0)

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

impl<P1: TypePath, P2: TypePath, P3: TypePath, P4: TypePath, P5: TypePath, P6: TypePath, P7: TypePath, P8: TypePath, P9: TypePath, P10: TypePath, P11: TypePath, P0: TypePath> TypePath for (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P0)

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

impl<T> TypePath for Option<T>
where Self: Any + Send + Sync, T: TypePath,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl<T> TypePath for VecDeque<T>
where Self: Any + Send + Sync, T: TypePath,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl<T> TypePath for Arc<T>
where Self: Any + Send + Sync, T: TypePath + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl<T> TypePath for Vec<T>
where Self: Any + Send + Sync, T: TypePath,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl<T> TypePath for Saturating<T>
where Self: Any + Send + Sync, T: TypePath + Clone + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl<T> TypePath for Wrapping<T>
where Self: Any + Send + Sync, T: TypePath + Clone + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl<T> TypePath for Range<T>
where Self: Any + Send + Sync, T: TypePath + Clone + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl<T> TypePath for RangeFrom<T>
where Self: Any + Send + Sync, T: TypePath + Clone + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl<T> TypePath for RangeInclusive<T>
where Self: Any + Send + Sync, T: TypePath + Clone + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl<T> TypePath for RangeTo<T>
where Self: Any + Send + Sync, T: TypePath + Clone + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl<T> TypePath for RangeToInclusive<T>
where Self: Any + Send + Sync, T: TypePath + Clone + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl<T> TypePath for HashSet<T>
where Self: Any + Send + Sync, T: TypePath + Hash + Eq + Clone + Send + Sync,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl<T, E> TypePath for Result<T, E>
where Self: Any + Send + Sync, T: TypePath + Clone + Reflect + TypePath, E: TypePath + Clone + Reflect + TypePath,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

fn type_ident() -> Option<&'static str>

source§

fn crate_name() -> Option<&'static str>

source§

fn module_path() -> Option<&'static str>

source§

impl<T: TypePath + ?Sized> TypePath for &'static T

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

impl<T: TypePath + ?Sized> TypePath for &'static mut T

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

impl<T: TypePath> TypePath for [T]
where [T]: ToOwned,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

source§

impl<T: TypePath, const N: usize> TypePath for [T; N]

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

Implementors§

source§

impl TypePath for DynamicArray
where Self: Any + Send + Sync,

source§

impl TypePath for DynamicEnum
where Self: Any + Send + Sync,

source§

impl TypePath for DynamicList
where Self: Any + Send + Sync,

source§

impl TypePath for DynamicMap
where Self: Any + Send + Sync,

source§

impl TypePath for DynamicStruct
where Self: Any + Send + Sync,

source§

impl TypePath for DynamicTuple
where Self: Any + Send + Sync,

source§

impl TypePath for DynamicTupleStruct
where Self: Any + Send + Sync,

source§

impl TypePath for dyn Reflect