Trait bevy::reflect::prelude::Struct

pub trait Struct: Reflect {
    // Required methods
    fn field(&self, name: &str) -> Option<&(dyn Reflect + 'static)>;
    fn field_mut(&mut self, name: &str) -> Option<&mut (dyn Reflect + 'static)>;
    fn field_at(&self, index: usize) -> Option<&(dyn Reflect + 'static)>;
    fn field_at_mut(
        &mut self,
        index: usize
    ) -> Option<&mut (dyn Reflect + 'static)>;
    fn name_at(&self, index: usize) -> Option<&str>;
    fn field_len(&self) -> usize;
    fn iter_fields(&self) -> FieldIter<'_> ;
    fn clone_dynamic(&self) -> DynamicStruct;
}
Expand description

A trait used to power struct-like operations via reflection.

This trait uses the Reflect trait to allow implementors to have their fields be dynamically addressed by both name and index.

When using #[derive(Reflect)] on a standard struct, this trait will be automatically implemented. This goes for unit structs as well.

Example

use bevy_reflect::{Reflect, Struct};

#[derive(Reflect)]
struct Foo {
    bar: u32,
}

let foo = Foo { bar: 123 };

assert_eq!(foo.field_len(), 1);
assert_eq!(foo.name_at(0), Some("bar"));

let field: &dyn Reflect = foo.field("bar").unwrap();
assert_eq!(field.downcast_ref::<u32>(), Some(&123));

Required Methods§

fn field(&self, name: &str) -> Option<&(dyn Reflect + 'static)>

Returns a reference to the value of the field named name as a &dyn Reflect.

fn field_mut(&mut self, name: &str) -> Option<&mut (dyn Reflect + 'static)>

Returns a mutable reference to the value of the field named name as a &mut dyn Reflect.

fn field_at(&self, index: usize) -> Option<&(dyn Reflect + 'static)>

Returns a reference to the value of the field with index index as a &dyn Reflect.

fn field_at_mut(&mut self, index: usize) -> Option<&mut (dyn Reflect + 'static)>

Returns a mutable reference to the value of the field with index index as a &mut dyn Reflect.

fn name_at(&self, index: usize) -> Option<&str>

Returns the name of the field with index index.

fn field_len(&self) -> usize

Returns the number of fields in the struct.

fn iter_fields(&self) -> FieldIter<'_>

Returns an iterator over the values of the reflectable fields for this struct.

fn clone_dynamic(&self) -> DynamicStruct

Clones the struct into a DynamicStruct.

Trait Implementations§

§

impl GetField for dyn Struct

§

fn get_field<T>(&self, name: &str) -> Option<&T>where T: Reflect,

Returns a reference to the value of the field named name, downcast to T.
§

fn get_field_mut<T>(&mut self, name: &str) -> Option<&mut T>where T: Reflect,

Returns a mutable reference to the value of the field named name, downcast to T.

Implementors§

§

impl Struct for AnimationClipwhere Vec<Vec<VariableCurve, Global>, Global>: FromReflect + TypePath, HashMap<EntityPath, usize, BuildHasherDefault<AHasher>, Global>: FromReflect + TypePath, f32: FromReflect + TypePath,

§

impl Struct for AnimationPlayerwhere bool: FromReflect + TypePath, PlayingAnimation: FromReflect + TypePath, Vec<AnimationTransition, Global>: Any + Send + Sync,

§

impl Struct for EntityPathwhere Vec<Name, Global>: FromReflect + TypePath,

§

impl Struct for VariableCurvewhere Vec<f32, Global>: FromReflect + TypePath, Keyframes: FromReflect + TypePath,

§

impl Struct for AssetIndexwhere u32: FromReflect + TypePath,

§

impl Struct for GlobalVolumewhere VolumeLevel: FromReflect + TypePath,

§

impl Struct for PlaybackSettingswhere PlaybackMode: FromReflect + TypePath, Volume: FromReflect + TypePath, f32: FromReflect + TypePath, bool: FromReflect + TypePath,

§

impl Struct for SpatialListenerwhere Vec3: FromReflect + TypePath,

§

impl Struct for Namewhere u64: FromReflect + TypePath, Cow<'static, str>: FromReflect + TypePath,

§

impl Struct for BloomPrefilterSettingswhere f32: FromReflect + TypePath,

§

impl Struct for BloomSettingswhere f32: FromReflect + TypePath, BloomPrefilterSettings: FromReflect + TypePath, BloomCompositeMode: FromReflect + TypePath,

§

impl Struct for ContrastAdaptiveSharpeningSettingswhere bool: FromReflect + TypePath, f32: FromReflect + TypePath,

§

impl Struct for Camera2dwhere ClearColorConfig: FromReflect + TypePath,

§

impl Struct for Camera3dwhere ClearColorConfig: FromReflect + TypePath, Camera3dDepthLoadOp: FromReflect + TypePath, Camera3dDepthTextureUsage: FromReflect + TypePath, usize: FromReflect + TypePath, ScreenSpaceTransmissionQuality: FromReflect + TypePath,

§

impl Struct for TemporalAntiAliasSettingswhere bool: FromReflect + TypePath,

§

impl Struct for Fxaawhere bool: FromReflect + TypePath, Sensitivity: FromReflect + TypePath,

§

impl Struct for DeferredPrepass

§

impl Struct for DepthPrepass

§

impl Struct for MotionVectorPrepass

§

impl Struct for NormalPrepass

§

impl Struct for AabbGizmowhere Option<Color>: FromReflect + TypePath,

§

impl Struct for AabbGizmoConfigwhere bool: FromReflect + TypePath, Option<Color>: FromReflect + TypePath,

§

impl Struct for GizmoConfigwhere bool: FromReflect + TypePath, f32: FromReflect + TypePath, AabbGizmoConfig: FromReflect + TypePath, RenderLayers: FromReflect + TypePath,

§

impl Struct for GltfExtraswhere String: FromReflect + TypePath,

§

impl Struct for AxisSettingswhere f32: FromReflect + TypePath,

§

impl Struct for ButtonAxisSettingswhere f32: FromReflect + TypePath,

§

impl Struct for ButtonSettingswhere f32: FromReflect + TypePath,

§

impl Struct for Gamepadwhere usize: FromReflect + TypePath,

§

impl Struct for GamepadAxiswhere Gamepad: FromReflect + TypePath, GamepadAxisType: FromReflect + TypePath,

§

impl Struct for GamepadAxisChangedEventwhere Gamepad: FromReflect + TypePath, GamepadAxisType: FromReflect + TypePath, f32: FromReflect + TypePath,

§

impl Struct for GamepadButtonwhere Gamepad: FromReflect + TypePath, GamepadButtonType: FromReflect + TypePath,

§

impl Struct for GamepadButtonChangedEventwhere Gamepad: FromReflect + TypePath, GamepadButtonType: FromReflect + TypePath, f32: FromReflect + TypePath,

§

impl Struct for GamepadButtonInputwhere GamepadButton: FromReflect + TypePath, ButtonState: FromReflect + TypePath,

§

impl Struct for GamepadConnectionEventwhere Gamepad: FromReflect + TypePath, GamepadConnection: FromReflect + TypePath,

§

impl Struct for GamepadInfowhere String: FromReflect + TypePath,

§

impl Struct for GamepadSettingswhere ButtonSettings: FromReflect + TypePath, AxisSettings: FromReflect + TypePath, ButtonAxisSettings: FromReflect + TypePath, HashMap<GamepadButton, ButtonSettings, BuildHasherDefault<AHasher>, Global>: FromReflect + TypePath, HashMap<GamepadAxis, AxisSettings, BuildHasherDefault<AHasher>, Global>: FromReflect + TypePath, HashMap<GamepadButton, ButtonAxisSettings, BuildHasherDefault<AHasher>, Global>: FromReflect + TypePath,

§

impl Struct for KeyboardInputwhere u32: FromReflect + TypePath, Option<KeyCode>: FromReflect + TypePath, ButtonState: FromReflect + TypePath, Entity: FromReflect + TypePath,

§

impl Struct for MouseButtonInputwhere MouseButton: FromReflect + TypePath, ButtonState: FromReflect + TypePath, Entity: FromReflect + TypePath,

§

impl Struct for MouseMotionwhere Vec2: FromReflect + TypePath,

§

impl Struct for MouseWheelwhere MouseScrollUnit: FromReflect + TypePath, f32: FromReflect + TypePath, Entity: FromReflect + TypePath,

§

impl Struct for TouchInputwhere TouchPhase: FromReflect + TypePath, Vec2: FromReflect + TypePath, Option<ForceTouch>: FromReflect + TypePath, u64: FromReflect + TypePath,

§

impl Struct for BVec2where bool: FromReflect + TypePath,

§

impl Struct for BVec3where bool: FromReflect + TypePath,

§

impl Struct for BVec4where bool: FromReflect + TypePath,

§

impl Struct for Mat2where Vec2: FromReflect + TypePath,

§

impl Struct for Mat3where Vec3: FromReflect + TypePath,

§

impl Struct for Mat4where Vec4: FromReflect + TypePath,

§

impl Struct for Quatwhere f32: FromReflect + TypePath,

§

impl Struct for Vec2where f32: FromReflect + TypePath,

§

impl Struct for Vec3where f32: FromReflect + TypePath,

§

impl Struct for Vec4where f32: FromReflect + TypePath,

§

impl Struct for IVec2where i32: FromReflect + TypePath,

§

impl Struct for IVec3where i32: FromReflect + TypePath,

§

impl Struct for IVec4where i32: FromReflect + TypePath,

§

impl Struct for Affine2where Mat2: FromReflect + TypePath, Vec2: FromReflect + TypePath,

§

impl Struct for Affine3Awhere Mat3A: FromReflect + TypePath, Vec3A: FromReflect + TypePath,

§

impl Struct for DAffine2where DMat2: FromReflect + TypePath, DVec2: FromReflect + TypePath,

§

impl Struct for DAffine3where DMat3: FromReflect + TypePath, DVec3: FromReflect + TypePath,

§

impl Struct for DMat2where DVec2: FromReflect + TypePath,

§

impl Struct for DMat3where DVec3: FromReflect + TypePath,

§

impl Struct for DMat4where DVec4: FromReflect + TypePath,

§

impl Struct for DQuatwhere f64: FromReflect + TypePath,

§

impl Struct for DVec2where f64: FromReflect + TypePath,

§

impl Struct for DVec3where f64: FromReflect + TypePath,

§

impl Struct for DVec4where f64: FromReflect + TypePath,

§

impl Struct for I64Vec2where i64: FromReflect + TypePath,

§

impl Struct for I64Vec3where i64: FromReflect + TypePath,

§

impl Struct for I64Vec4where i64: FromReflect + TypePath,

§

impl Struct for IRectwhere IVec2: FromReflect + TypePath,

§

impl Struct for Mat3Awhere Vec3A: FromReflect + TypePath,

§

impl Struct for Rectwhere Vec2: FromReflect + TypePath,

§

impl Struct for U64Vec2where u64: FromReflect + TypePath,

§

impl Struct for U64Vec3where u64: FromReflect + TypePath,

§

impl Struct for U64Vec4where u64: FromReflect + TypePath,

§

impl Struct for URectwhere UVec2: FromReflect + TypePath,

§

impl Struct for Vec3Awhere f32: FromReflect + TypePath,

§

impl Struct for UVec2where u32: FromReflect + TypePath,

§

impl Struct for UVec3where u32: FromReflect + TypePath,

§

impl Struct for UVec4where u32: FromReflect + TypePath,

§

impl Struct for AmbientLightwhere Color: FromReflect + TypePath, f32: FromReflect + TypePath,

§

impl Struct for Cascadewhere Mat4: FromReflect + TypePath, f32: FromReflect + TypePath,

§

impl Struct for CascadeShadowConfigwhere Vec<f32, Global>: FromReflect + TypePath, f32: FromReflect + TypePath,

§

impl Struct for Cascadeswhere HashMap<Entity, Vec<Cascade, Global>, BuildHasherDefault<AHasher>, Global>: FromReflect + TypePath,

§

impl Struct for CascadesVisibleEntitieswhere HashMap<Entity, Vec<VisibleEntities, Global>, BuildHasherDefault<AHasher>, Global>: Any + Send + Sync,

§

impl Struct for ClusterZConfigwhere f32: FromReflect + TypePath, ClusterFarZMode: FromReflect + TypePath,

§

impl Struct for CubemapVisibleEntitieswhere [VisibleEntities; 6]: Any + Send + Sync,

§

impl Struct for DirectionalLightwhere Color: FromReflect + TypePath, f32: FromReflect + TypePath, bool: FromReflect + TypePath,

§

impl Struct for DirectionalLightShadowMapwhere usize: FromReflect + TypePath,

§

impl Struct for EnvironmentMapLightwhere Handle<Image>: FromReflect + TypePath,

§

impl Struct for FogSettingswhere Color: FromReflect + TypePath, f32: FromReflect + TypePath, FogFalloff: FromReflect + TypePath,

§

impl Struct for NotShadowCaster

§

impl Struct for NotShadowReceiver

§

impl Struct for PointLightwhere Color: FromReflect + TypePath, f32: FromReflect + TypePath, bool: FromReflect + TypePath,

§

impl Struct for PointLightShadowMapwhere usize: FromReflect + TypePath,

§

impl Struct for ScreenSpaceAmbientOcclusionSettingswhere ScreenSpaceAmbientOcclusionQualityLevel: FromReflect + TypePath,

§

impl Struct for SpotLightwhere Color: FromReflect + TypePath, f32: FromReflect + TypePath, bool: FromReflect + TypePath,

§

impl Struct for StandardMaterialwhere Color: FromReflect + TypePath, Option<Handle<Image>>: FromReflect + TypePath, f32: FromReflect + TypePath, bool: FromReflect + TypePath, AlphaMode: FromReflect + TypePath, ParallaxMappingMethod: FromReflect + TypePath, OpaqueRendererMethod: FromReflect + TypePath, u8: FromReflect + TypePath, Option<Face>: Any + Send + Sync,

§

impl Struct for TransmittedShadowReceiver

§

impl Struct for NoWireframe

§

impl Struct for Wireframe

§

impl Struct for WireframeColorwhere Color: FromReflect + TypePath,

§

impl Struct for WireframeConfigwhere bool: FromReflect + TypePath, Color: FromReflect + TypePath,

§

impl Struct for Camerawhere Option<Viewport>: FromReflect + TypePath, isize: FromReflect + TypePath, bool: FromReflect + TypePath, ComputedCameraValues: Any + Send + Sync, RenderTarget: Any + Send + Sync, CameraOutputMode: Any + Send + Sync,

§

impl Struct for OrthographicProjectionwhere f32: FromReflect + TypePath, Vec2: FromReflect + TypePath, ScalingMode: FromReflect + TypePath, Rect: FromReflect + TypePath,

§

impl Struct for PerspectiveProjectionwhere f32: FromReflect + TypePath,

§

impl Struct for Viewportwhere UVec2: FromReflect + TypePath, Range<f32>: FromReflect + TypePath,

§

impl Struct for GlobalsUniformwhere f32: FromReflect + TypePath, u32: FromReflect + TypePath,

§

impl Struct for MeshMorphWeightswhere Vec<f32, Global>: FromReflect + TypePath,

§

impl Struct for MorphWeightswhere Vec<f32, Global>: FromReflect + TypePath, Option<Handle<Mesh>>: FromReflect + TypePath,

§

impl Struct for SkinnedMeshwhere Handle<SkinnedMeshInverseBindposes>: FromReflect + TypePath, Vec<Entity, Global>: FromReflect + TypePath,

§

impl Struct for Meshwhere Option<Indices>: FromReflect + TypePath, Option<Handle<Image>>: FromReflect + TypePath, Option<Vec<String, Global>>: FromReflect + TypePath, PrimitiveTopology: Any + Send + Sync, BTreeMap<MeshVertexAttributeId, MeshAttributeData, Global>: Any + Send + Sync,

§

impl Struct for Aabbwhere Vec3A: FromReflect + TypePath,

§

impl Struct for CascadesFrustawhere HashMap<Entity, Vec<Frustum, Global>, BuildHasherDefault<AHasher>, Global>: Any + Send + Sync,

§

impl Struct for CubemapFrustawhere [Frustum; 6]: Any + Send + Sync,

§

impl Struct for Frustumwhere [HalfSpace; 6]: Any + Send + Sync,

§

impl Struct for ColorGradingwhere f32: FromReflect + TypePath,

§

impl Struct for NoFrustumCulling

§

impl Struct for VisibleEntitieswhere Vec<Entity, Global>: Any + Send + Sync,

§

impl Struct for ColorMaterialwhere Color: FromReflect + TypePath, Option<Handle<Image>>: FromReflect + TypePath,

§

impl Struct for Spritewhere Color: FromReflect + TypePath, bool: FromReflect + TypePath, Option<Vec2>: FromReflect + TypePath, Option<Rect>: FromReflect + TypePath, Anchor: FromReflect + TypePath,

§

impl Struct for TextureAtlaswhere Handle<Image>: FromReflect + TypePath, Vec2: FromReflect + TypePath, Vec<Rect, Global>: FromReflect + TypePath, Option<HashMap<AssetId<Image>, usize, BuildHasherDefault<AHasher>, Global>>: FromReflect + TypePath,

§

impl Struct for TextureAtlasSpritewhere Color: FromReflect + TypePath, usize: FromReflect + TypePath, bool: FromReflect + TypePath, Option<Vec2>: FromReflect + TypePath, Anchor: FromReflect + TypePath,

§

impl Struct for GlyphAtlasInfowhere Handle<TextureAtlas>: FromReflect + TypePath, usize: FromReflect + TypePath,

§

impl Struct for PositionedGlyphwhere Vec2: FromReflect + TypePath, GlyphAtlasInfo: FromReflect + TypePath, usize: FromReflect + TypePath,

§

impl Struct for Text2dBoundswhere Vec2: FromReflect + TypePath,

§

impl Struct for Textwhere Vec<TextSection, Global>: FromReflect + TypePath, TextAlignment: FromReflect + TypePath, BreakLineOn: FromReflect + TypePath,

§

impl Struct for TextLayoutInfowhere Vec<PositionedGlyph, Global>: FromReflect + TypePath, Vec2: FromReflect + TypePath,

§

impl Struct for TextSectionwhere String: FromReflect + TypePath, TextStyle: FromReflect + TypePath,

§

impl Struct for TextStylewhere Handle<Font>: FromReflect + TypePath, f32: FromReflect + TypePath, Color: FromReflect + TypePath,

§

impl Struct for Fixedwhere Duration: FromReflect + TypePath,

§

impl Struct for Realwhere Instant: FromReflect + TypePath, Option<Instant>: FromReflect + TypePath,

§

impl Struct for Stopwatchwhere Duration: FromReflect + TypePath, bool: FromReflect + TypePath,

§

impl Struct for Timerwhere Stopwatch: FromReflect + TypePath, Duration: FromReflect + TypePath, TimerMode: FromReflect + TypePath, bool: FromReflect + TypePath, u32: FromReflect + TypePath,

§

impl Struct for Virtualwhere Duration: FromReflect + TypePath, bool: FromReflect + TypePath, f64: FromReflect + TypePath,

§

impl Struct for Transformwhere Vec3: FromReflect + TypePath, Quat: FromReflect + TypePath,

§

impl Struct for UiCameraConfigwhere bool: FromReflect + TypePath,

§

impl Struct for CalculatedClipwhere Rect: FromReflect + TypePath,

§

impl Struct for ContentSizewhere Option<MeasureFunc>: Any + Send + Sync,

§

impl Struct for GridPlacementwhere Option<NonZeroI16>: FromReflect + TypePath, Option<NonZeroU16>: FromReflect + TypePath,

§

impl Struct for GridTrackwhere MinTrackSizingFunction: FromReflect + TypePath, MaxTrackSizingFunction: FromReflect + TypePath,

§

impl Struct for Nodewhere u32: FromReflect + TypePath, Vec2: FromReflect + TypePath, f32: FromReflect + TypePath,

§

impl Struct for Outlinewhere Val: FromReflect + TypePath, Color: FromReflect + TypePath,

§

impl Struct for Overflowwhere OverflowAxis: FromReflect + TypePath,

§

impl Struct for RelativeCursorPositionwhere Rect: FromReflect + TypePath, Option<Vec2>: FromReflect + TypePath,

§

impl Struct for RepeatedGridTrackwhere GridTrackRepetition: FromReflect + TypePath, SmallVec<[GridTrack; 1]>: FromReflect + TypePath,

§

impl Struct for Stylewhere Display: FromReflect + TypePath, PositionType: FromReflect + TypePath, Overflow: FromReflect + TypePath, Direction: FromReflect + TypePath, Val: FromReflect + TypePath, Option<f32>: FromReflect + TypePath, AlignItems: FromReflect + TypePath, JustifyItems: FromReflect + TypePath, AlignSelf: FromReflect + TypePath, JustifySelf: FromReflect + TypePath, AlignContent: FromReflect + TypePath, JustifyContent: FromReflect + TypePath, UiRect: FromReflect + TypePath, FlexDirection: FromReflect + TypePath, FlexWrap: FromReflect + TypePath, f32: FromReflect + TypePath, GridAutoFlow: FromReflect + TypePath, Vec<RepeatedGridTrack, Global>: FromReflect + TypePath, Vec<GridTrack, Global>: FromReflect + TypePath, GridPlacement: FromReflect + TypePath,

§

impl Struct for UiImagewhere Handle<Image>: FromReflect + TypePath, bool: FromReflect + TypePath,

§

impl Struct for UiRectwhere Val: FromReflect + TypePath,

§

impl Struct for UiTextureAtlasImagewhere usize: FromReflect + TypePath, bool: FromReflect + TypePath,

§

impl Struct for Button

§

impl Struct for Label

§

impl Struct for TextFlagswhere bool: FromReflect + TypePath,

§

impl Struct for UiImageSizewhere Vec2: FromReflect + TypePath,

§

impl Struct for Cursorwhere CursorIcon: FromReflect + TypePath, bool: FromReflect + TypePath, CursorGrabMode: FromReflect + TypePath,

§

impl Struct for CursorEnteredwhere Entity: FromReflect + TypePath,

§

impl Struct for CursorLeftwhere Entity: FromReflect + TypePath,

§

impl Struct for CursorMovedwhere Entity: FromReflect + TypePath, Vec2: FromReflect + TypePath,

§

impl Struct for EnabledButtonswhere bool: FromReflect + TypePath,

§

impl Struct for InternalWindowStatewhere Option<bool>: FromReflect + TypePath, Option<DVec2>: FromReflect + TypePath,

§

impl Struct for PrimaryWindow

§

impl Struct for ReceivedCharacterwhere Entity: FromReflect + TypePath, char: FromReflect + TypePath,

§

impl Struct for RequestRedraw

§

impl Struct for Windowwhere Cursor: FromReflect + TypePath, PresentMode: FromReflect + TypePath, WindowMode: FromReflect + TypePath, WindowPosition: FromReflect + TypePath, WindowResolution: FromReflect + TypePath, String: FromReflect + TypePath, CompositeAlphaMode: FromReflect + TypePath, WindowResizeConstraints: FromReflect + TypePath, bool: FromReflect + TypePath, EnabledButtons: FromReflect + TypePath, WindowLevel: FromReflect + TypePath, Option<String>: FromReflect + TypePath, InternalWindowState: FromReflect + TypePath, Vec2: FromReflect + TypePath, Option<WindowTheme>: FromReflect + TypePath,

§

impl Struct for WindowBackendScaleFactorChangedwhere Entity: FromReflect + TypePath, f64: FromReflect + TypePath,

§

impl Struct for WindowCloseRequestedwhere Entity: FromReflect + TypePath,

§

impl Struct for WindowClosedwhere Entity: FromReflect + TypePath,

§

impl Struct for WindowCreatedwhere Entity: FromReflect + TypePath,

§

impl Struct for WindowDestroyedwhere Entity: FromReflect + TypePath,

§

impl Struct for WindowFocusedwhere Entity: FromReflect + TypePath, bool: FromReflect + TypePath,

§

impl Struct for WindowMovedwhere Entity: FromReflect + TypePath, IVec2: FromReflect + TypePath,

§

impl Struct for WindowOccludedwhere Entity: FromReflect + TypePath, bool: FromReflect + TypePath,

§

impl Struct for WindowResizeConstraintswhere f32: FromReflect + TypePath,

§

impl Struct for WindowResizedwhere Entity: FromReflect + TypePath, f32: FromReflect + TypePath,

§

impl Struct for WindowResolutionwhere u32: FromReflect + TypePath, Option<f64>: FromReflect + TypePath, f64: FromReflect + TypePath,

§

impl Struct for WindowScaleFactorChangedwhere Entity: FromReflect + TypePath, f64: FromReflect + TypePath,

§

impl Struct for WindowThemeChangedwhere Entity: FromReflect + TypePath, WindowTheme: FromReflect + TypePath,

§

impl Struct for DynamicStruct

§

impl<B, E> Struct for ExtendedMaterial<B, E>where B: Material + FromReflect + TypePath, E: MaterialExtension + FromReflect + TypePath,

§

impl<T> Struct for Input<T>where T: Copy + Eq + Hash + Send + Sync + 'static + TypePath, HashSet<T, BuildHasherDefault<AHasher>, Global>: FromReflect + TypePath,

§

impl<T> Struct for Time<T>where T: Default + FromReflect + TypePath, Duration: FromReflect + TypePath, f32: FromReflect + TypePath, f64: FromReflect + TypePath,