pub trait GetTypeRegistration {
    // Required method
    fn get_type_registration() -> TypeRegistration;
}
Expand description

A trait which allows a type to generate its TypeRegistration for registration into the TypeRegistry.

This trait is automatically implemented for items using #[derive(Reflect)]. The macro also allows TypeData to be more easily registered.

See the crate-level documentation for more information on type registration.

Required Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl GetTypeRegistration for &'static str

source§

impl GetTypeRegistration for &'static Path

source§

impl GetTypeRegistration for bool
where bool: Any + Send + Sync,

source§

impl GetTypeRegistration for char
where char: Any + Send + Sync,

source§

impl GetTypeRegistration for f32
where f32: Any + Send + Sync,

source§

impl GetTypeRegistration for f64
where f64: Any + Send + Sync,

source§

impl GetTypeRegistration for i8
where i8: Any + Send + Sync,

source§

impl GetTypeRegistration for i16
where i16: Any + Send + Sync,

source§

impl GetTypeRegistration for i32
where i32: Any + Send + Sync,

source§

impl GetTypeRegistration for i64
where i64: Any + Send + Sync,

source§

impl GetTypeRegistration for i128
where i128: Any + Send + Sync,

source§

impl GetTypeRegistration for isize
where isize: Any + Send + Sync,

source§

impl GetTypeRegistration for u8
where u8: Any + Send + Sync,

source§

impl GetTypeRegistration for u16
where u16: Any + Send + Sync,

source§

impl GetTypeRegistration for u32
where u32: Any + Send + Sync,

source§

impl GetTypeRegistration for u64
where u64: Any + Send + Sync,

source§

impl GetTypeRegistration for u128
where u128: Any + Send + Sync,

source§

impl GetTypeRegistration for ()

source§

impl GetTypeRegistration for usize
where usize: Any + Send + Sync,

source§

impl GetTypeRegistration for NonZero<i8>
where NonZero<i8>: Any + Send + Sync,

source§

impl GetTypeRegistration for NonZero<i16>
where NonZero<i16>: Any + Send + Sync,

source§

impl GetTypeRegistration for NonZero<i32>
where NonZero<i32>: Any + Send + Sync,

source§

impl GetTypeRegistration for NonZero<i64>
where NonZero<i64>: Any + Send + Sync,

source§

impl GetTypeRegistration for NonZero<i128>
where NonZero<i128>: Any + Send + Sync,

source§

impl GetTypeRegistration for NonZero<isize>
where NonZero<isize>: Any + Send + Sync,

source§

impl GetTypeRegistration for NonZero<u8>
where NonZero<u8>: Any + Send + Sync,

source§

impl GetTypeRegistration for NonZero<u16>
where NonZero<u16>: Any + Send + Sync,

source§

impl GetTypeRegistration for NonZero<u32>
where NonZero<u32>: Any + Send + Sync,

source§

impl GetTypeRegistration for NonZero<u64>
where NonZero<u64>: Any + Send + Sync,

source§

impl GetTypeRegistration for NonZero<u128>
where NonZero<u128>: Any + Send + Sync,

source§

impl GetTypeRegistration for NonZero<usize>
where NonZero<usize>: Any + Send + Sync,

source§

impl GetTypeRegistration for RangeFull
where RangeFull: Any + Send + Sync,

source§

impl GetTypeRegistration for OsString
where OsString: Any + Send + Sync,

source§

impl GetTypeRegistration for PathBuf
where PathBuf: Any + Send + Sync,

source§

impl GetTypeRegistration for SmolStr
where SmolStr: Any + Send + Sync,

source§

impl<A> GetTypeRegistration for (A,)
where A: Reflect + TypePath,

source§

impl<A, B> GetTypeRegistration for (A, B)
where A: Reflect + TypePath, B: Reflect + TypePath,

source§

impl<A, B, C> GetTypeRegistration for (A, B, C)

source§

impl<A, B, C, D> GetTypeRegistration for (A, B, C, D)

source§

impl<A, B, C, D, E> GetTypeRegistration for (A, B, C, D, E)

source§

impl<A, B, C, D, E, F> GetTypeRegistration for (A, B, C, D, E, F)

source§

impl<A, B, C, D, E, F, G> GetTypeRegistration for (A, B, C, D, E, F, G)

source§

impl<A, B, C, D, E, F, G, H> GetTypeRegistration for (A, B, C, D, E, F, G, H)

source§

impl<A, B, C, D, E, F, G, H, I> GetTypeRegistration for (A, B, C, D, E, F, G, H, I)

source§

impl<A, B, C, D, E, F, G, H, I, J> GetTypeRegistration for (A, B, C, D, E, F, G, H, I, J)

source§

impl<A, B, C, D, E, F, G, H, I, J, K> GetTypeRegistration for (A, B, C, D, E, F, G, H, I, J, K)

source§

impl<A, B, C, D, E, F, G, H, I, J, K, L> GetTypeRegistration for (A, B, C, D, E, F, G, H, I, J, K, L)

source§

impl<K, V, S> GetTypeRegistration for HashMap<K, V, S>

source§

impl<T> GetTypeRegistration for Option<T>
where T: FromReflect + TypePath,

source§

impl<T> GetTypeRegistration for [T; 0]
where T: Reflect + TypePath,

source§

impl<T> GetTypeRegistration for [T; 1]
where T: Reflect + TypePath,

source§

impl<T> GetTypeRegistration for [T; 2]
where T: Reflect + TypePath,

source§

impl<T> GetTypeRegistration for [T; 3]
where T: Reflect + TypePath,

source§

impl<T> GetTypeRegistration for [T; 4]
where T: Reflect + TypePath,

source§

impl<T> GetTypeRegistration for [T; 5]
where T: Reflect + TypePath,

source§

impl<T> GetTypeRegistration for [T; 6]
where T: Reflect + TypePath,

source§

impl<T> GetTypeRegistration for [T; 7]
where T: Reflect + TypePath,

source§

impl<T> GetTypeRegistration for [T; 8]
where T: Reflect + TypePath,

source§

impl<T> GetTypeRegistration for [T; 9]
where T: Reflect + TypePath,

source§

impl<T> GetTypeRegistration for [T; 10]
where T: Reflect + TypePath,

source§

impl<T> GetTypeRegistration for [T; 11]
where T: Reflect + TypePath,

source§

impl<T> GetTypeRegistration for [T; 12]
where T: Reflect + TypePath,

source§

impl<T> GetTypeRegistration for [T; 13]
where T: Reflect + TypePath,

source§

impl<T> GetTypeRegistration for [T; 14]
where T: Reflect + TypePath,

source§

impl<T> GetTypeRegistration for [T; 15]
where T: Reflect + TypePath,

source§

impl<T> GetTypeRegistration for [T; 16]
where T: Reflect + TypePath,

source§

impl<T> GetTypeRegistration for [T; 17]
where T: Reflect + TypePath,

source§

impl<T> GetTypeRegistration for [T; 18]
where T: Reflect + TypePath,

source§

impl<T> GetTypeRegistration for [T; 19]
where T: Reflect + TypePath,

source§

impl<T> GetTypeRegistration for [T; 20]
where T: Reflect + TypePath,

source§

impl<T> GetTypeRegistration for [T; 21]
where T: Reflect + TypePath,

source§

impl<T> GetTypeRegistration for [T; 22]
where T: Reflect + TypePath,

source§

impl<T> GetTypeRegistration for [T; 23]
where T: Reflect + TypePath,

source§

impl<T> GetTypeRegistration for [T; 24]
where T: Reflect + TypePath,

source§

impl<T> GetTypeRegistration for [T; 25]
where T: Reflect + TypePath,

source§

impl<T> GetTypeRegistration for [T; 26]
where T: Reflect + TypePath,

source§

impl<T> GetTypeRegistration for [T; 27]
where T: Reflect + TypePath,

source§

impl<T> GetTypeRegistration for [T; 28]
where T: Reflect + TypePath,

source§

impl<T> GetTypeRegistration for [T; 29]
where T: Reflect + TypePath,

source§

impl<T> GetTypeRegistration for [T; 30]
where T: Reflect + TypePath,

source§

impl<T> GetTypeRegistration for [T; 31]
where T: Reflect + TypePath,

source§

impl<T> GetTypeRegistration for [T; 32]
where T: Reflect + TypePath,

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

Implementors§

source§

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

source§

impl GetTypeRegistration for GamepadConnection

source§

impl GetTypeRegistration for GamepadEvent

source§

impl GetTypeRegistration for Key

source§

impl GetTypeRegistration for NativeKey

source§

impl GetTypeRegistration for NativeKeyCode

source§

impl GetTypeRegistration for MouseScrollUnit

source§

impl GetTypeRegistration for GamepadAxisType

source§

impl GetTypeRegistration for GamepadButtonType

source§

impl GetTypeRegistration for KeyCode

source§

impl GetTypeRegistration for MouseButton

source§

impl GetTypeRegistration for ForceTouch

source§

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

source§

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

source§

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

source§

impl GetTypeRegistration for Cow<'static, str>

source§

impl GetTypeRegistration for Cow<'static, Path>

source§

impl GetTypeRegistration for ApplicationLifetime

source§

impl GetTypeRegistration for CompositeAlphaMode

source§

impl GetTypeRegistration for CursorGrabMode

source§

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

source§

impl GetTypeRegistration for FileDragAndDrop

source§

impl GetTypeRegistration for Ime

source§

impl GetTypeRegistration for MonitorSelection

source§

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

source§

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

source§

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

source§

impl GetTypeRegistration for WindowPosition

source§

impl GetTypeRegistration for WindowRef

source§

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

source§

impl GetTypeRegistration for Name

source§

impl GetTypeRegistration for ComponentId

source§

impl GetTypeRegistration for ComponentTicks

source§

impl GetTypeRegistration for Tick

source§

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

source§

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

source§

impl GetTypeRegistration for Children

source§

impl GetTypeRegistration for Parent

source§

impl GetTypeRegistration for AxisSettings

source§

impl GetTypeRegistration for ButtonAxisSettings

source§

impl GetTypeRegistration for ButtonSettings

source§

impl GetTypeRegistration for GamepadAxisChangedEvent

source§

impl GetTypeRegistration for GamepadButtonChangedEvent

source§

impl GetTypeRegistration for GamepadButtonInput

source§

impl GetTypeRegistration for GamepadConnectionEvent

source§

impl GetTypeRegistration for GamepadInfo

source§

impl GetTypeRegistration for GamepadSettings

source§

impl GetTypeRegistration for KeyboardInput

source§

impl GetTypeRegistration for MouseButtonInput

source§

impl GetTypeRegistration for MouseMotion

source§

impl GetTypeRegistration for MouseWheel

source§

impl GetTypeRegistration for Gamepad

source§

impl GetTypeRegistration for GamepadAxis

source§

impl GetTypeRegistration for GamepadButton

source§

impl GetTypeRegistration for TouchInput

source§

impl GetTypeRegistration for TouchpadMagnify

source§

impl GetTypeRegistration for TouchpadRotate

source§

impl GetTypeRegistration for BVec2

source§

impl GetTypeRegistration for BVec3

source§

impl GetTypeRegistration for BVec4

source§

impl GetTypeRegistration for Mat2

source§

impl GetTypeRegistration for Mat3

source§

impl GetTypeRegistration for Mat4

source§

impl GetTypeRegistration for Quat

source§

impl GetTypeRegistration for Vec2

source§

impl GetTypeRegistration for Vec3

source§

impl GetTypeRegistration for Vec4

source§

impl GetTypeRegistration for IVec2

source§

impl GetTypeRegistration for IVec3

source§

impl GetTypeRegistration for IVec4

source§

impl GetTypeRegistration for Capsule2d

source§

impl GetTypeRegistration for Capsule3d

source§

impl GetTypeRegistration for Circle

source§

impl GetTypeRegistration for Cone

source§

impl GetTypeRegistration for ConicalFrustum

source§

impl GetTypeRegistration for Cuboid

source§

impl GetTypeRegistration for Cylinder

source§

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

source§

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

source§

impl GetTypeRegistration for Ellipse

source§

impl GetTypeRegistration for Line2d

source§

impl GetTypeRegistration for Line3d

source§

impl GetTypeRegistration for Plane2d

source§

impl GetTypeRegistration for Plane3d

source§

impl GetTypeRegistration for Rectangle

source§

impl GetTypeRegistration for RegularPolygon

source§

impl GetTypeRegistration for Segment2d

source§

impl GetTypeRegistration for Segment3d

source§

impl GetTypeRegistration for Sphere

source§

impl GetTypeRegistration for Torus

source§

impl GetTypeRegistration for Triangle2d

source§

impl GetTypeRegistration for Affine2

source§

impl GetTypeRegistration for Affine3A

source§

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

source§

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

source§

impl GetTypeRegistration for DAffine2

source§

impl GetTypeRegistration for DAffine3

source§

impl GetTypeRegistration for DMat2

source§

impl GetTypeRegistration for DMat3

source§

impl GetTypeRegistration for DMat4

source§

impl GetTypeRegistration for DQuat

source§

impl GetTypeRegistration for DVec2

source§

impl GetTypeRegistration for DVec3

source§

impl GetTypeRegistration for DVec4

source§

impl GetTypeRegistration for I64Vec2

source§

impl GetTypeRegistration for I64Vec3

source§

impl GetTypeRegistration for I64Vec4

source§

impl GetTypeRegistration for IRect

source§

impl GetTypeRegistration for Mat3A

source§

impl GetTypeRegistration for Rect

source§

impl GetTypeRegistration for U64Vec2

source§

impl GetTypeRegistration for U64Vec3

source§

impl GetTypeRegistration for U64Vec4

source§

impl GetTypeRegistration for URect

source§

impl GetTypeRegistration for Vec3A

source§

impl GetTypeRegistration for UVec2

source§

impl GetTypeRegistration for UVec3

source§

impl GetTypeRegistration for UVec4

source§

impl GetTypeRegistration for Fixed

source§

impl GetTypeRegistration for Real

source§

impl GetTypeRegistration for Stopwatch

source§

impl GetTypeRegistration for Timer

source§

impl GetTypeRegistration for Virtual

source§

impl GetTypeRegistration for GlobalTransform

source§

impl GetTypeRegistration for Transform

source§

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

source§

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

source§

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

source§

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

source§

impl GetTypeRegistration for Cursor

source§

impl GetTypeRegistration for CursorEntered

source§

impl GetTypeRegistration for CursorLeft

source§

impl GetTypeRegistration for CursorMoved

source§

impl GetTypeRegistration for EnabledButtons

source§

impl GetTypeRegistration for InternalWindowState

source§

impl GetTypeRegistration for NormalizedWindowRef

source§

impl GetTypeRegistration for PrimaryWindow

source§

impl GetTypeRegistration for ReceivedCharacter

source§

impl GetTypeRegistration for RequestRedraw

source§

impl GetTypeRegistration for Window

source§

impl GetTypeRegistration for WindowBackendScaleFactorChanged

source§

impl GetTypeRegistration for WindowCloseRequested

source§

impl GetTypeRegistration for WindowClosed

source§

impl GetTypeRegistration for WindowCreated

source§

impl GetTypeRegistration for WindowDestroyed

source§

impl GetTypeRegistration for WindowFocused

source§

impl GetTypeRegistration for WindowMoved

source§

impl GetTypeRegistration for WindowOccluded

source§

impl GetTypeRegistration for WindowResizeConstraints

source§

impl GetTypeRegistration for WindowResized

source§

impl GetTypeRegistration for WindowResolution

source§

impl GetTypeRegistration for WindowScaleFactorChanged

source§

impl GetTypeRegistration for WindowThemeChanged

source§

impl<K, V, S> GetTypeRegistration for bevy_internal::utils::hashbrown::HashMap<K, V, S>

source§

impl<S> GetTypeRegistration for NextState<S>

source§

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

source§

impl<T> GetTypeRegistration for Cow<'static, [T]>
where T: FromReflect + Clone + TypePath,

source§

impl<T> GetTypeRegistration for ButtonInput<T>
where T: Copy + Eq + Hash + Send + Sync + 'static + TypePath, ButtonInput<T>: Any + Send + Sync, HashSet<T>: FromReflect + TypePath,

source§

impl<T> GetTypeRegistration for Time<T>

source§

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

source§

impl<T> GetTypeRegistration for VecDeque<T>
where T: FromReflect + TypePath,

source§

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

source§

impl<T> GetTypeRegistration for Vec<T>
where T: FromReflect + TypePath,

source§

impl<T> GetTypeRegistration for SmallVec<T>
where T: Array + TypePath + Send + Sync, <T as Array>::Item: FromReflect + TypePath,

source§

impl<const N: usize> GetTypeRegistration for Polygon<N>
where Polygon<N>: Any + Send + Sync, [Vec2; N]: FromReflect + TypePath,

source§

impl<const N: usize> GetTypeRegistration for Polyline2d<N>

source§

impl<const N: usize> GetTypeRegistration for Polyline3d<N>