Trait bevy::prelude::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 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 bool: 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 char: 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 f32: 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 f64: 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 i8: 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 i16: 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 i32: 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 i64: 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 i128: 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 isize: 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 str: 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 u8: 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 u16: 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 u32: 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 u64: 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 u128: 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 usize: 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 SmolStr
where SmolStr: 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 BuildHasherDefault<AHasher>

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 NonZeroI8: 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 NonZeroI16: 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 NonZeroI32: 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 NonZeroI64: 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 NonZeroI128: 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

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 NonZeroU8: 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 NonZeroU16: 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 NonZeroU32: 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 NonZeroU64: 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 NonZeroU128: 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

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 RangeFull: 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 OsString: 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 RandomState: 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 Path: 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 PathBuf: 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<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<P0> TypePath for (P0,)
where P0: TypePath,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'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<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 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 T: Clone + Reflect + TypePath, E: Clone + Reflect + TypePath, Result<T, E>: 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, const N: usize> TypePath for [T; N]
where T: TypePath,

source§

fn type_path() -> &'static str

source§

fn short_type_path() -> &'static str

Implementors§

source§

impl TypePath for Interpolation

source§

impl TypePath for Keyframes
where Keyframes: Any + Send + Sync,

source§

impl TypePath for RepeatAnimation

source§

impl TypePath for PlaybackMode

source§

impl TypePath for BloomCompositeMode

source§

impl TypePath for Camera3dDepthLoadOp

source§

impl TypePath for ScreenSpaceTransmissionQuality

source§

impl TypePath for Sensitivity
where Sensitivity: Any + Send + Sync,

source§

impl TypePath for DebandDither

source§

impl TypePath for Tonemapping
where Tonemapping: Any + Send + Sync,

source§

impl TypePath for ButtonState
where ButtonState: Any + Send + Sync,

source§

impl TypePath for GamepadAxisType

source§

impl TypePath for GamepadButtonType

source§

impl TypePath for GamepadConnection

source§

impl TypePath for GamepadEvent

source§

impl TypePath for Key
where Key: Any + Send + Sync,

source§

impl TypePath for KeyCode
where KeyCode: Any + Send + Sync,

source§

impl TypePath for NativeKey
where NativeKey: Any + Send + Sync,

source§

impl TypePath for NativeKeyCode

source§

impl TypePath for MouseButton
where MouseButton: Any + Send + Sync,

source§

impl TypePath for MouseScrollUnit

source§

impl TypePath for ForceTouch
where ForceTouch: Any + Send + Sync,

source§

impl TypePath for TouchPhase
where TouchPhase: Any + Send + Sync,

source§

impl TypePath for EulerRot
where EulerRot: Any + Send + Sync,

source§

impl TypePath for AlphaMode
where AlphaMode: Any + Send + Sync,

source§

impl TypePath for ClusterConfig

source§

impl TypePath for ClusterFarZMode

source§

impl TypePath for FogFalloff
where FogFalloff: Any + Send + Sync,

source§

impl TypePath for OpaqueRendererMethod

source§

impl TypePath for ParallaxMappingMethod

source§

impl TypePath for ScreenSpaceAmbientOcclusionQualityLevel

source§

impl TypePath for ShadowFilteringMethod

source§

impl TypePath for ClearColorConfig

source§

impl TypePath for NormalizedRenderTarget

source§

impl TypePath for Projection
where Projection: Any + Send + Sync,

source§

impl TypePath for RenderTarget

source§

impl TypePath for ScalingMode
where ScalingMode: Any + Send + Sync,

source§

impl TypePath for Color
where Color: Any + Send + Sync,

source§

impl TypePath for Indices
where Indices: Any + Send + Sync,

source§

impl TypePath for Msaa
where Msaa: Any + Send + Sync,

source§

impl TypePath for Visibility
where Visibility: Any + Send + Sync,

source§

impl TypePath for Anchor
where Anchor: Any + Send + Sync,

source§

impl TypePath for ImageScaleMode

source§

impl TypePath for SliceScaleMode

source§

impl TypePath for BreakLineOn
where BreakLineOn: Any + Send + Sync,

source§

impl TypePath for JustifyText
where JustifyText: Any + Send + Sync,

source§

impl TypePath for TimerMode
where TimerMode: Any + Send + Sync,

source§

impl TypePath for AlignContent

source§

impl TypePath for AlignItems
where AlignItems: Any + Send + Sync,

source§

impl TypePath for AlignSelf
where AlignSelf: Any + Send + Sync,

source§

impl TypePath for Direction
where Direction: Any + Send + Sync,

source§

impl TypePath for Display
where Display: Any + Send + Sync,

source§

impl TypePath for FlexDirection

source§

impl TypePath for FlexWrap
where FlexWrap: Any + Send + Sync,

source§

impl TypePath for FocusPolicy
where FocusPolicy: Any + Send + Sync,

source§

impl TypePath for GridAutoFlow

source§

impl TypePath for GridTrackRepetition

source§

impl TypePath for Interaction
where Interaction: Any + Send + Sync,

source§

impl TypePath for JustifyContent

source§

impl TypePath for JustifyItems

source§

impl TypePath for JustifySelf
where JustifySelf: Any + Send + Sync,

source§

impl TypePath for MaxTrackSizingFunction

source§

impl TypePath for MinTrackSizingFunction

source§

impl TypePath for OverflowAxis

source§

impl TypePath for PositionType

source§

impl TypePath for Val
where Val: Any + Send + Sync,

source§

impl TypePath for ZIndex
where ZIndex: Any + Send + Sync,

source§

impl TypePath for ApplicationLifetime

source§

impl TypePath for CompositeAlphaMode

source§

impl TypePath for CursorGrabMode

source§

impl TypePath for CursorIcon
where CursorIcon: Any + Send + Sync,

source§

impl TypePath for FileDragAndDrop

source§

impl TypePath for Ime
where Ime: Any + Send + Sync,

source§

impl TypePath for MonitorSelection

source§

impl TypePath for PresentMode
where PresentMode: Any + Send + Sync,

source§

impl TypePath for WindowLevel
where WindowLevel: Any + Send + Sync,

source§

impl TypePath for WindowMode
where WindowMode: Any + Send + Sync,

source§

impl TypePath for WindowPosition

source§

impl TypePath for WindowRef
where WindowRef: Any + Send + Sync,

source§

impl TypePath for WindowTheme
where WindowTheme: Any + Send + Sync,

source§

impl TypePath for AnimationClip

source§

impl TypePath for AnimationPlayer

source§

impl TypePath for EntityPath
where EntityPath: Any + Send + Sync,

source§

impl TypePath for VariableCurve

source§

impl TypePath for AssetIndex
where AssetIndex: Any + Send + Sync,

source§

impl TypePath for AssetPath<'static>

source§

impl TypePath for LoadedFolder

source§

impl TypePath for LoadedUntypedAsset

source§

impl TypePath for StrongHandle

source§

impl TypePath for AudioSource
where AudioSource: Any + Send + Sync,

source§

impl TypePath for DefaultSpatialScale

source§

impl TypePath for GlobalVolume

source§

impl TypePath for Pitch
where Pitch: Any + Send + Sync,

source§

impl TypePath for PlaybackSettings

source§

impl TypePath for SpatialListener

source§

impl TypePath for SpatialScale

source§

impl TypePath for Volume
where Volume: Any + Send + Sync,

source§

impl TypePath for Name
where Name: Any + Send + Sync,

source§

impl TypePath for BloomPrefilterSettings

source§

impl TypePath for BloomSettings

source§

impl TypePath for ContrastAdaptiveSharpeningSettings

source§

impl TypePath for DenoiseCAS
where DenoiseCAS: Any + Send + Sync,

source§

impl TypePath for Camera2d
where Camera2d: Any + Send + Sync,

source§

impl TypePath for Camera3d
where Camera3d: Any + Send + Sync,

source§

impl TypePath for Camera3dDepthTextureUsage

source§

impl TypePath for TemporalAntiAliasSettings

source§

impl TypePath for Fxaa
where Fxaa: Any + Send + Sync,

source§

impl TypePath for DeferredPrepass

source§

impl TypePath for DepthPrepass

source§

impl TypePath for MotionVectorPrepass

source§

impl TypePath for NormalPrepass

source§

impl TypePath for ComponentId
where ComponentId: Any + Send + Sync,

source§

impl TypePath for ComponentTicks

source§

impl TypePath for Tick
where Tick: Any + Send + Sync,

source§

impl TypePath for Entity
where Entity: Any + Send + Sync,

source§

impl TypePath for EntityHash
where EntityHash: Any + Send + Sync,

source§

impl TypePath for AabbGizmoConfigGroup

source§

impl TypePath for ShowAabbGizmo

source§

impl TypePath for DefaultGizmoConfigGroup

source§

impl TypePath for GizmoConfig
where GizmoConfig: Any + Send + Sync,

source§

impl TypePath for Gltf
where Gltf: Any + Send + Sync,

source§

impl TypePath for GltfExtras
where GltfExtras: Any + Send + Sync,

source§

impl TypePath for GltfMesh
where GltfMesh: Any + Send + Sync,

source§

impl TypePath for GltfNode
where GltfNode: Any + Send + Sync,

source§

impl TypePath for GltfPrimitive

source§

impl TypePath for Children
where Children: Any + Send + Sync,

source§

impl TypePath for Parent
where Parent: Any + Send + Sync,

source§

impl TypePath for AxisSettings

source§

impl TypePath for ButtonAxisSettings

source§

impl TypePath for ButtonSettings

source§

impl TypePath for Gamepad
where Gamepad: Any + Send + Sync,

source§

impl TypePath for GamepadAxis
where GamepadAxis: Any + Send + Sync,

source§

impl TypePath for GamepadAxisChangedEvent

source§

impl TypePath for GamepadButton

source§

impl TypePath for GamepadButtonChangedEvent

source§

impl TypePath for GamepadButtonInput

source§

impl TypePath for GamepadConnectionEvent

source§

impl TypePath for GamepadInfo
where GamepadInfo: Any + Send + Sync,

source§

impl TypePath for GamepadSettings

source§

impl TypePath for KeyboardInput

source§

impl TypePath for MouseButtonInput

source§

impl TypePath for MouseMotion
where MouseMotion: Any + Send + Sync,

source§

impl TypePath for MouseWheel
where MouseWheel: Any + Send + Sync,

source§

impl TypePath for TouchInput
where TouchInput: Any + Send + Sync,

source§

impl TypePath for TouchpadMagnify

source§

impl TypePath for TouchpadRotate

source§

impl TypePath for BVec2
where BVec2: Any + Send + Sync,

source§

impl TypePath for BVec3
where BVec3: Any + Send + Sync,

source§

impl TypePath for BVec4
where BVec4: Any + Send + Sync,

source§

impl TypePath for Mat2
where Mat2: Any + Send + Sync,

source§

impl TypePath for Mat3
where Mat3: Any + Send + Sync,

source§

impl TypePath for Mat4
where Mat4: Any + Send + Sync,

source§

impl TypePath for Quat
where Quat: Any + Send + Sync,

source§

impl TypePath for Vec2
where Vec2: Any + Send + Sync,

source§

impl TypePath for Vec3
where Vec3: Any + Send + Sync,

source§

impl TypePath for Vec4
where Vec4: Any + Send + Sync,

source§

impl TypePath for IVec2
where IVec2: Any + Send + Sync,

source§

impl TypePath for IVec3
where IVec3: Any + Send + Sync,

source§

impl TypePath for IVec4
where IVec4: Any + Send + Sync,

source§

impl TypePath for Capsule2d
where Capsule2d: Any + Send + Sync,

source§

impl TypePath for Capsule3d
where Capsule3d: Any + Send + Sync,

source§

impl TypePath for Circle
where Circle: Any + Send + Sync,

source§

impl TypePath for Cone
where Cone: Any + Send + Sync,

source§

impl TypePath for ConicalFrustum

source§

impl TypePath for Cuboid
where Cuboid: Any + Send + Sync,

source§

impl TypePath for Cylinder
where Cylinder: Any + Send + Sync,

source§

impl TypePath for Direction2d
where Direction2d: Any + Send + Sync,

source§

impl TypePath for Direction3d
where Direction3d: Any + Send + Sync,

source§

impl TypePath for Ellipse
where Ellipse: Any + Send + Sync,

source§

impl TypePath for Line2d
where Line2d: Any + Send + Sync,

source§

impl TypePath for Line3d
where Line3d: Any + Send + Sync,

source§

impl TypePath for Plane2d
where Plane2d: Any + Send + Sync,

source§

impl TypePath for Plane3d
where Plane3d: Any + Send + Sync,

source§

impl TypePath for Rectangle
where Rectangle: Any + Send + Sync,

source§

impl TypePath for RegularPolygon

source§

impl TypePath for Segment2d
where Segment2d: Any + Send + Sync,

source§

impl TypePath for Segment3d
where Segment3d: Any + Send + Sync,

source§

impl TypePath for Sphere
where Sphere: Any + Send + Sync,

source§

impl TypePath for Torus
where Torus: Any + Send + Sync,

source§

impl TypePath for Triangle2d
where Triangle2d: Any + Send + Sync,

source§

impl TypePath for Affine2
where Affine2: Any + Send + Sync,

source§

impl TypePath for Affine3A
where Affine3A: Any + Send + Sync,

source§

impl TypePath for BVec3A
where BVec3A: Any + Send + Sync,

source§

impl TypePath for BVec4A
where BVec4A: Any + Send + Sync,

source§

impl TypePath for DAffine2
where DAffine2: Any + Send + Sync,

source§

impl TypePath for DAffine3
where DAffine3: Any + Send + Sync,

source§

impl TypePath for DMat2
where DMat2: Any + Send + Sync,

source§

impl TypePath for DMat3
where DMat3: Any + Send + Sync,

source§

impl TypePath for DMat4
where DMat4: Any + Send + Sync,

source§

impl TypePath for DQuat
where DQuat: Any + Send + Sync,

source§

impl TypePath for DVec2
where DVec2: Any + Send + Sync,

source§

impl TypePath for DVec3
where DVec3: Any + Send + Sync,

source§

impl TypePath for DVec4
where DVec4: Any + Send + Sync,

source§

impl TypePath for I64Vec2
where I64Vec2: Any + Send + Sync,

source§

impl TypePath for I64Vec3
where I64Vec3: Any + Send + Sync,

source§

impl TypePath for I64Vec4
where I64Vec4: Any + Send + Sync,

source§

impl TypePath for IRect
where IRect: Any + Send + Sync,

source§

impl TypePath for Mat3A
where Mat3A: Any + Send + Sync,

source§

impl TypePath for Rect
where Rect: Any + Send + Sync,

source§

impl TypePath for U64Vec2
where U64Vec2: Any + Send + Sync,

source§

impl TypePath for U64Vec3
where U64Vec3: Any + Send + Sync,

source§

impl TypePath for U64Vec4
where U64Vec4: Any + Send + Sync,

source§

impl TypePath for URect
where URect: Any + Send + Sync,

source§

impl TypePath for Vec3A
where Vec3A: Any + Send + Sync,

source§

impl TypePath for UVec2
where UVec2: Any + Send + Sync,

source§

impl TypePath for UVec3
where UVec3: Any + Send + Sync,

source§

impl TypePath for UVec4
where UVec4: Any + Send + Sync,

source§

impl TypePath for EnvironmentMapLight

source§

impl TypePath for IrradianceVolume

source§

impl TypePath for AmbientLight

source§

impl TypePath for Cascade
where Cascade: Any + Send + Sync,

source§

impl TypePath for CascadeShadowConfig

source§

impl TypePath for Cascades
where Cascades: Any + Send + Sync,

source§

impl TypePath for CascadesVisibleEntities

source§

impl TypePath for ClusterZConfig

source§

impl TypePath for CubemapVisibleEntities

source§

impl TypePath for DefaultOpaqueRendererMethod

source§

impl TypePath for DirectionalLight

source§

impl TypePath for DirectionalLightShadowMap

source§

impl TypePath for FogSettings
where FogSettings: Any + Send + Sync,

source§

impl TypePath for LightProbe
where LightProbe: Any + Send + Sync,

source§

impl TypePath for Lightmap
where Lightmap: Any + Send + Sync,

source§

impl TypePath for NotShadowCaster

source§

impl TypePath for NotShadowReceiver

source§

impl TypePath for PointLight
where PointLight: Any + Send + Sync,

source§

impl TypePath for PointLightShadowMap

source§

impl TypePath for ScreenSpaceAmbientOcclusionSettings

source§

impl TypePath for SpotLight
where SpotLight: Any + Send + Sync,

source§

impl TypePath for StandardMaterial

source§

impl TypePath for TransmittedShadowReceiver

source§

impl TypePath for NoWireframe
where NoWireframe: Any + Send + Sync,

source§

impl TypePath for Wireframe
where Wireframe: Any + Send + Sync,

source§

impl TypePath for WireframeColor

source§

impl TypePath for WireframeConfig

source§

impl TypePath for WireframeMaterial

source§

impl TypePath for DynamicArray

source§

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

source§

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

source§

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

source§

impl TypePath for DynamicStruct

source§

impl TypePath for DynamicTuple

source§

impl TypePath for DynamicTupleStruct

source§

impl TypePath for Camera
where Camera: Any + Send + Sync,

source§

impl TypePath for CameraMainTextureUsages

source§

impl TypePath for CameraRenderGraph

source§

impl TypePath for ClearColor
where ClearColor: Any + Send + Sync,

source§

impl TypePath for Exposure
where Exposure: Any + Send + Sync,

source§

impl TypePath for ManualTextureViewHandle

source§

impl TypePath for OrthographicProjection

source§

impl TypePath for PerspectiveProjection

source§

impl TypePath for Viewport
where Viewport: Any + Send + Sync,

source§

impl TypePath for GlobalsUniform

source§

impl TypePath for MeshMorphWeights

source§

impl TypePath for MorphWeights

source§

impl TypePath for SkinnedMesh
where SkinnedMesh: Any + Send + Sync,

source§

impl TypePath for SkinnedMeshInverseBindposes

source§

impl TypePath for Mesh
where Mesh: Any + Send + Sync,

source§

impl TypePath for Aabb
where Aabb: Any + Send + Sync,

source§

impl TypePath for CascadesFrusta

source§

impl TypePath for CubemapFrusta

source§

impl TypePath for Frustum
where Frustum: Any + Send + Sync,

source§

impl TypePath for RenderAssetUsages

source§

impl TypePath for Shader
where Shader: Any + Send + Sync,

source§

impl TypePath for Image
where Image: Any + Send + Sync,

source§

impl TypePath for ColorGrading

source§

impl TypePath for InheritedVisibility

source§

impl TypePath for NoFrustumCulling

source§

impl TypePath for RenderLayers

source§

impl TypePath for ViewVisibility

source§

impl TypePath for VisibleEntities

source§

impl TypePath for DynamicScene

source§

impl TypePath for Scene
where Scene: Any + Send + Sync,

source§

impl TypePath for BorderRect
where BorderRect: Any + Send + Sync,

source§

impl TypePath for ColorMaterial

source§

impl TypePath for Mesh2dHandle

source§

impl TypePath for Sprite
where Sprite: Any + Send + Sync,

source§

impl TypePath for TextureAtlas

source§

impl TypePath for TextureAtlasLayout

source§

impl TypePath for TextureSlicer

source§

impl TypePath for Font
where Font: Any + Send + Sync,

source§

impl TypePath for GlyphAtlasInfo

source§

impl TypePath for PositionedGlyph

source§

impl TypePath for Text2dBounds

source§

impl TypePath for Text
where Text: Any + Send + Sync,

source§

impl TypePath for TextLayoutInfo

source§

impl TypePath for TextSection
where TextSection: Any + Send + Sync,

source§

impl TypePath for TextStyle
where TextStyle: Any + Send + Sync,

source§

impl TypePath for Fixed
where Fixed: Any + Send + Sync,

source§

impl TypePath for Real
where Real: Any + Send + Sync,

source§

impl TypePath for Stopwatch
where Stopwatch: Any + Send + Sync,

source§

impl TypePath for Timer
where Timer: Any + Send + Sync,

source§

impl TypePath for Virtual
where Virtual: Any + Send + Sync,

source§

impl TypePath for GlobalTransform

source§

impl TypePath for Transform
where Transform: Any + Send + Sync,

source§

impl TypePath for BackgroundColor

source§

impl TypePath for BorderColor
where BorderColor: Any + Send + Sync,

source§

impl TypePath for CalculatedClip

source§

impl TypePath for ContentSize
where ContentSize: Any + Send + Sync,

source§

impl TypePath for GridPlacement

source§

impl TypePath for GridTrack
where GridTrack: Any + Send + Sync,

source§

impl TypePath for Node
where Node: Any + Send + Sync,

source§

impl TypePath for Outline
where Outline: Any + Send + Sync,

source§

impl TypePath for Overflow
where Overflow: Any + Send + Sync,

source§

impl TypePath for RelativeCursorPosition

source§

impl TypePath for RepeatedGridTrack

source§

impl TypePath for Style
where Style: Any + Send + Sync,

source§

impl TypePath for TargetCamera

source§

impl TypePath for UiImage
where UiImage: Any + Send + Sync,

source§

impl TypePath for UiRect
where UiRect: Any + Send + Sync,

source§

impl TypePath for UiScale
where UiScale: Any + Send + Sync,

source§

impl TypePath for Button
where Button: Any + Send + Sync,

source§

impl TypePath for Label
where Label: Any + Send + Sync,

source§

impl TypePath for TextFlags
where TextFlags: Any + Send + Sync,

source§

impl TypePath for UiImageSize
where UiImageSize: Any + Send + Sync,

source§

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

source§

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

source§

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

source§

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

source§

impl TypePath for Cursor
where Cursor: Any + Send + Sync,

source§

impl TypePath for CursorEntered

source§

impl TypePath for CursorLeft
where CursorLeft: Any + Send + Sync,

source§

impl TypePath for CursorMoved
where CursorMoved: Any + Send + Sync,

source§

impl TypePath for EnabledButtons

source§

impl TypePath for InternalWindowState

source§

impl TypePath for NormalizedWindowRef

source§

impl TypePath for PrimaryWindow

source§

impl TypePath for ReceivedCharacter

source§

impl TypePath for RequestRedraw

source§

impl TypePath for Window
where Window: Any + Send + Sync,

source§

impl TypePath for WindowBackendScaleFactorChanged

source§

impl TypePath for WindowCloseRequested

source§

impl TypePath for WindowClosed

source§

impl TypePath for WindowCreated

source§

impl TypePath for WindowDestroyed

source§

impl TypePath for WindowFocused

source§

impl TypePath for WindowMoved
where WindowMoved: Any + Send + Sync,

source§

impl TypePath for WindowOccluded

source§

impl TypePath for WindowResizeConstraints

source§

impl TypePath for WindowResized

source§

impl TypePath for WindowResolution

source§

impl TypePath for WindowScaleFactorChanged

source§

impl TypePath for WindowThemeChanged

source§

impl TypePath for dyn Reflect

source§

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

source§

impl<A> TypePath for AssetId<A>
where A: Asset + TypePath, AssetId<A>: Any + Send + Sync,

source§

impl<A> TypePath for Handle<A>
where A: Asset + TypePath, Handle<A>: Any + Send + Sync,

source§

impl<B, E> TypePath for ExtendedMaterial<B, E>

source§

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

source§

impl<S> TypePath for NextState<S>
where S: States + TypePath, NextState<S>: Any + Send + Sync,

source§

impl<S> TypePath for State<S>
where S: States + TypePath, State<S>: Any + Send + Sync,

source§

impl<T> TypePath for ButtonInput<T>
where T: Copy + 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 HashSet<T>
where T: Hash + Eq + Clone + Send + Sync + TypePath, HashSet<T>: Any + Send + Sync,

source§

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

source§

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

source§

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

source§

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

source§

impl<const N: usize> TypePath for Polygon<N>
where Polygon<N>: Any + Send + Sync,

source§

impl<const N: usize> TypePath for Polyline2d<N>
where Polyline2d<N>: Any + Send + Sync,

source§

impl<const N: usize> TypePath for Polyline3d<N>
where Polyline3d<N>: Any + Send + Sync,