Trait TypePath

Source
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 core::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 core::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 "std::option::Option<std::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 "std::option".

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.

Implementations on Foreign Types§

Source§

impl TypePath for &'static Location<'static>

Source§

fn type_path() -> &'static str

Source§

fn short_type_path() -> &'static str

Source§

impl TypePath for SocketAddr

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 bool

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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 FixedState

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

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 TypeId

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 NonZero<i8>

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 NonZero<i16>

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 NonZero<i32>

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 NonZero<i64>

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 NonZero<i128>

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 NonZero<isize>

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 NonZero<u8>

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 NonZero<u16>

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 NonZero<u32>

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 NonZero<u64>

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 NonZero<u128>

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 NonZero<usize>

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

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

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

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

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

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

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> TypePath for FoldHasher<'a>
where FoldHasher<'a>: 'static,

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, T> TypePath for Cow<'a, T>
where 'a: 'static, T: ToOwned + TypePath + ?Sized, Cow<'a, T>: 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<H> TypePath for BuildHasherDefault<H>

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> TypePath for BTreeMap<K, V>
where BTreeMap<K, V>: Any + Send + Sync, K: TypePath, V: 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 HashMap<K, V, S>: 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<P1, P0> TypePath for (P1, P0)
where P1: TypePath, P0: TypePath,

Source§

fn type_path() -> &'static str

Source§

fn short_type_path() -> &'static str

Source§

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

Source§

fn type_path() -> &'static str

Source§

fn short_type_path() -> &'static str

Source§

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

Source§

fn type_path() -> &'static str

Source§

fn short_type_path() -> &'static str

Source§

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

Source§

fn type_path() -> &'static str

Source§

fn short_type_path() -> &'static str

Source§

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

Source§

fn type_path() -> &'static str

Source§

fn short_type_path() -> &'static str

Source§

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

Source§

fn type_path() -> &'static str

Source§

fn short_type_path() -> &'static str

Source§

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

Source§

fn type_path() -> &'static str

Source§

fn short_type_path() -> &'static str

Source§

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

Source§

fn type_path() -> &'static str

Source§

fn short_type_path() -> &'static str

Source§

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

Source§

fn type_path() -> &'static str

Source§

fn short_type_path() -> &'static str

Source§

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

Source§

fn type_path() -> &'static str

Source§

fn short_type_path() -> &'static str

Source§

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

Source§

fn type_path() -> &'static str

Source§

fn short_type_path() -> &'static str

Source§

impl<P> TypePath for (P,)
where P: TypePath,

Source§

fn type_path() -> &'static str

Source§

fn short_type_path() -> &'static str

Source§

impl<T> TypePath for Bound<T>
where T: Clone + Send + Sync + TypePath, Bound<T>: 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<T> TypePath for Option<T>
where Option<T>: 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 &'static T
where T: TypePath + ?Sized,

Source§

fn type_path() -> &'static str

Source§

fn short_type_path() -> &'static str

Source§

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

Source§

fn type_path() -> &'static str

Source§

fn short_type_path() -> &'static str

Source§

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

Source§

fn type_path() -> &'static str

Source§

fn short_type_path() -> &'static str

Source§

impl<T> TypePath for SmallVec<T>
where T: Array + TypePath, SmallVec<T>: 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<T> TypePath for BinaryHeap<T>
where T: Clone + TypePath, BinaryHeap<T>: 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<T> TypePath for BTreeSet<T>
where T: Ord + Eq + Clone + Send + Sync + TypePath, BTreeSet<T>: 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<T> TypePath for VecDeque<T>
where VecDeque<T>: 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 T: Clone + Send + Sync + TypePath, Saturating<T>: 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<T> TypePath for Wrapping<T>
where T: Clone + Send + Sync + TypePath, Wrapping<T>: 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<T> TypePath for Range<T>
where T: Clone + Send + Sync + TypePath, Range<T>: 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<T> TypePath for RangeFrom<T>
where T: Clone + Send + Sync + TypePath, RangeFrom<T>: 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<T> TypePath for RangeInclusive<T>
where T: Clone + Send + Sync + TypePath, RangeInclusive<T>: 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<T> TypePath for RangeTo<T>
where T: Clone + Send + Sync + TypePath, RangeTo<T>: 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<T> TypePath for RangeToInclusive<T>
where T: Clone + Send + Sync + TypePath, RangeToInclusive<T>: 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<T, E> TypePath for Result<T, E>
where Result<T, E>: Any + Send + Sync, T: TypePath, E: 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, const N: usize> TypePath for [T; N]
where T: TypePath,

Source§

fn type_path() -> &'static str

Source§

fn short_type_path() -> &'static str

Source§

impl<V, S> TypePath for HashSet<V, S>
where HashSet<V, S>: Any + Send + Sync, 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>

Implementors§

Source§

impl TypePath for ButtonState

Source§

impl TypePath for GamepadConnection

Source§

impl TypePath for GamepadEvent

Source§

impl TypePath for GamepadInput

Source§

impl TypePath for GamepadRumbleRequest

Source§

impl TypePath for RawGamepadEvent

Source§

impl TypePath for Key

Source§

impl TypePath for NativeKey

Source§

impl TypePath for NativeKeyCode

Source§

impl TypePath for MouseScrollUnit

Source§

impl TypePath for ForceTouch

Source§

impl TypePath for TouchPhase

Source§

impl TypePath for CompassOctant

Source§

impl TypePath for CompassQuadrant

Source§

impl TypePath for EulerRot

Source§

impl TypePath for GamepadAxis

Source§

impl TypePath for GamepadButton

Source§

impl TypePath for KeyCode

Source§

impl TypePath for MouseButton

Source§

impl TypePath for TimerMode

Source§

impl TypePath for ComponentId

Source§

impl TypePath for ComponentTicks

Source§

impl TypePath for Tick

Source§

impl TypePath for EntityGeneration

Source§

impl TypePath for EntityHash

Source§

impl TypePath for EntityHashSet

Source§

impl TypePath for EntityRow

Source§

impl TypePath for DefaultQueryFilters

Source§

impl TypePath for Disabled

Source§

impl TypePath for Internal

Source§

impl TypePath for RemovedComponentEntity

Source§

impl TypePath for ObservedBy

Source§

impl TypePath for AxisSettings

Source§

impl TypePath for ButtonAxisSettings

Source§

impl TypePath for ButtonSettings

Source§

impl TypePath for GamepadAxisChangedEvent

Source§

impl TypePath for GamepadButtonChangedEvent

Source§

impl TypePath for GamepadButtonStateChangedEvent

Source§

impl TypePath for GamepadConnectionEvent

Source§

impl TypePath for GamepadRumbleIntensity

Source§

impl TypePath for RawGamepadAxisChangedEvent

Source§

impl TypePath for RawGamepadButtonChangedEvent

Source§

impl TypePath for DoubleTapGesture

Source§

impl TypePath for PanGesture

Source§

impl TypePath for PinchGesture

Source§

impl TypePath for RotationGesture

Source§

impl TypePath for KeyboardFocusLost

Source§

impl TypePath for KeyboardInput

Source§

impl TypePath for AccumulatedMouseMotion

Source§

impl TypePath for AccumulatedMouseScroll

Source§

impl TypePath for MouseButtonInput

Source§

impl TypePath for MouseMotion

Source§

impl TypePath for MouseWheel

Source§

impl TypePath for Aabb2d

Source§

impl TypePath for Aabb3d

Source§

impl TypePath for AabbCast2d

Source§

impl TypePath for AabbCast3d

Source§

impl TypePath for BoundingCircle

Source§

impl TypePath for BoundingCircleCast

Source§

impl TypePath for BoundingSphere

Source§

impl TypePath for BoundingSphereCast

Source§

impl TypePath for RayCast2d

Source§

impl TypePath for RayCast3d

Source§

impl TypePath for Affine2

Source§

impl TypePath for Affine3

Source§

impl TypePath for Affine3A

Source§

impl TypePath for AspectRatio

Source§

impl TypePath for DAffine2

Source§

impl TypePath for DAffine3

Source§

impl TypePath for DMat2

Source§

impl TypePath for DMat3

Source§

impl TypePath for DMat4

Source§

impl TypePath for DQuat

Source§

impl TypePath for DVec2

Source§

impl TypePath for DVec3

Source§

impl TypePath for DVec4

Source§

impl TypePath for Dir4

Source§

impl TypePath for FloatOrd

Source§

impl TypePath for I8Vec2

Source§

impl TypePath for I8Vec3

Source§

impl TypePath for I8Vec4

Source§

impl TypePath for I16Vec2

Source§

impl TypePath for I16Vec3

Source§

impl TypePath for I16Vec4

Source§

impl TypePath for I64Vec2

Source§

impl TypePath for I64Vec3

Source§

impl TypePath for I64Vec4

Source§

impl TypePath for U8Vec2

Source§

impl TypePath for U8Vec3

Source§

impl TypePath for U8Vec4

Source§

impl TypePath for U16Vec2

Source§

impl TypePath for U16Vec3

Source§

impl TypePath for U16Vec4

Source§

impl TypePath for U64Vec2

Source§

impl TypePath for U64Vec3

Source§

impl TypePath for U64Vec4

Source§

impl TypePath for FixedHasher

Source§

impl TypePath for bevy::platform::hash::FixedState

Source§

impl TypePath for NoOpHash

Source§

impl TypePath for PassHash

Source§

impl TypePath for bevy::platform::hash::RandomState

Source§

impl TypePath for AtomicBool

Source§

impl TypePath for AtomicI8

Source§

impl TypePath for AtomicI16

Source§

impl TypePath for AtomicI32

Source§

impl TypePath for AtomicI64

Source§

impl TypePath for AtomicIsize

Source§

impl TypePath for AtomicU8

Source§

impl TypePath for AtomicU16

Source§

impl TypePath for AtomicU32

Source§

impl TypePath for AtomicU64

Source§

impl TypePath for AtomicUsize

Source§

impl TypePath for Instant

Source§

impl TypePath for Add

Source§

impl TypePath for Annulus

Source§

impl TypePath for Arc2d

Source§

impl TypePath for BVec2

Source§

impl TypePath for BVec3

Source§

impl TypePath for BVec3A

Source§

impl TypePath for BVec4

Source§

impl TypePath for BVec4A

Source§

impl TypePath for Capsule2d

Source§

impl TypePath for Capsule3d

Source§

impl TypePath for ChildOf

Source§

impl TypePath for Children

Source§

impl TypePath for Circle

Source§

impl TypePath for CircularSector

Source§

impl TypePath for CircularSegment

Source§

impl TypePath for Cone

Source§

impl TypePath for ConicalFrustum

Source§

impl TypePath for ConvexPolygon

Source§

impl TypePath for Cuboid

Source§

impl TypePath for Cylinder

Source§

impl TypePath for Despawn

Source§

impl TypePath for Dir2

Source§

impl TypePath for Dir3

Source§

impl TypePath for Dir3A

Source§

impl TypePath for Ellipse

Source§

impl TypePath for Entity

Source§

impl TypePath for Fixed

Source§

impl TypePath for Gamepad

Source§

impl TypePath for GamepadSettings

Source§

impl TypePath for GlobalTransform

Source§

impl TypePath for IRect

Source§

impl TypePath for IVec2

Source§

impl TypePath for IVec3

Source§

impl TypePath for IVec4

Source§

impl TypePath for InfinitePlane3d

Source§

impl TypePath for Insert

Source§

impl TypePath for Isometry2d

Source§

impl TypePath for Isometry3d

Source§

impl TypePath for Line2d

Source§

impl TypePath for Line3d

Source§

impl TypePath for Mat2

Source§

impl TypePath for Mat3

Source§

impl TypePath for Mat3A

Source§

impl TypePath for Mat4

Source§

impl TypePath for Name

Source§

impl TypePath for Plane2d

Source§

impl TypePath for Plane3d

Source§

impl TypePath for Polygon

Source§

impl TypePath for Polyline2d

Source§

impl TypePath for Polyline3d

Source§

impl TypePath for Quat

Source§

impl TypePath for Ray2d

Source§

impl TypePath for Ray3d

Source§

impl TypePath for Real

Source§

impl TypePath for Rect

Source§

impl TypePath for Rectangle

Source§

impl TypePath for RegularPolygon

Source§

impl TypePath for Remove

Source§

impl TypePath for Replace

Source§

impl TypePath for Rhombus

Source§

impl TypePath for Rot2

Source§

impl TypePath for Segment2d

Source§

impl TypePath for Segment3d

Source§

impl TypePath for Sphere

Source§

impl TypePath for String

Source§

impl TypePath for Tetrahedron

Source§

impl TypePath for Timer

Source§

impl TypePath for Torus

Source§

impl TypePath for TouchInput

Source§

impl TypePath for Transform

Source§

impl TypePath for TransformTreeChanged

Source§

impl TypePath for Triangle2d

Source§

impl TypePath for Triangle3d

Source§

impl TypePath for URect

Source§

impl TypePath for UVec2

Source§

impl TypePath for UVec3

Source§

impl TypePath for UVec4

Source§

impl TypePath for Vec2

Source§

impl TypePath for Vec3

Source§

impl TypePath for Vec3A

Source§

impl TypePath for Vec4

Source§

impl TypePath for Virtual

Source§

impl TypePath for Stopwatch

Source§

impl TypePath for DynamicArray

Source§

impl TypePath for DynamicEnum

Source§

impl TypePath for DynamicList

Source§

impl TypePath for DynamicMap

Source§

impl TypePath for DynamicSet

Source§

impl TypePath for DynamicStruct

Source§

impl TypePath for DynamicTuple

Source§

impl TypePath for DynamicTupleStruct

Source§

impl TypePath for dyn PartialReflect

Source§

impl TypePath for dyn Reflect

Source§

impl<'a> TypePath for bevy::platform::hash::DefaultHasher<'a>
where FoldHasher<'a>: 'static,

Source§

impl<C> TypePath for Inherited<C>

Source§

impl<C> TypePath for Propagate<C>

Source§

impl<C> TypePath for PropagateOver<C>
where PropagateOver<C>: Any + Send + Sync, C: TypePath,

Source§

impl<C> TypePath for PropagateStop<C>
where PropagateStop<C>: Any + Send + Sync, C: TypePath,

Source§

impl<E> TypePath for Messages<E>
where E: Message + TypePath, Messages<E>: Any + Send + Sync,

Source§

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

Source§

impl<M> TypePath for MessageId<M>
where M: Message + TypePath, MessageId<M>: Any + Send + Sync,

Source§

impl<P> TypePath for LinearSpline<P>

Source§

impl<P> TypePath for CubicBSpline<P>

Source§

impl<P> TypePath for CubicBezier<P>

Source§

impl<P> TypePath for CubicCardinalSpline<P>

Source§

impl<P> TypePath for CubicCurve<P>

Source§

impl<P> TypePath for CubicHermite<P>

Source§

impl<P> TypePath for CubicNurbs<P>

Source§

impl<P> TypePath for CubicSegment<P>

Source§

impl<P> TypePath for RationalCurve<P>

Source§

impl<P> TypePath for RationalSegment<P>

Source§

impl<T> TypePath for MaybeLocation<T>
where MaybeLocation<T>: Any + Send + Sync, T: TypePath + ?Sized,

Source§

impl<T> TypePath for WithDerivative<T>

Source§

impl<T> TypePath for WithTwoDerivatives<T>

Source§

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

Source§

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

Source§

impl<T> TypePath for ButtonInput<T>
where T: Clone + Eq + Hash + Send + Sync + 'static + TypePath, ButtonInput<T>: Any + Send + Sync,

Source§

impl<T> TypePath for Time<T>
where T: Default + TypePath, Time<T>: Any + Send + Sync,

Source§

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

Source§

impl<V> TypePath for EntityHashMap<V>
where EntityHashMap<V>: Any + Send + Sync, V: TypePath,

Source§

impl<V> TypePath for EntityIndexMap<V>
where EntityIndexMap<V>: Any + Send + Sync, V: TypePath,

Source§

impl<V, S> TypePath for bevy::platform::collections::HashSet<V, S>
where HashSet<V, S>: Any + Send + Sync, V: TypePath, S: TypePath,

Source§

impl<V, W> TypePath for Sum<V, W>
where Sum<V, W>: Any + Send + Sync, V: TypePath, W: TypePath,