Struct

Trait Struct 

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

    // Provided methods
    fn to_dynamic_struct(&self) -> DynamicStruct { ... }
    fn get_represented_struct_info(&self) -> Option<&'static StructInfo> { ... }
}
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::{PartialReflect, 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 PartialReflect = foo.field("bar").unwrap();
assert_eq!(field.try_downcast_ref::<u32>(), Some(&123));

Required Methods§

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

Returns the name of the field with index index.

Source

fn field_len(&self) -> usize

Returns the number of fields in the struct.

Source

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

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

Provided Methods§

Source

fn to_dynamic_struct(&self) -> DynamicStruct

Creates a new DynamicStruct from this struct.

Source

fn get_represented_struct_info(&self) -> Option<&'static StructInfo>

Will return None if TypeInfo is not available.

Trait Implementations§

Source§

impl GetField for dyn Struct

Source§

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.
Source§

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.

Implementations on Foreign Types§

Source§

impl Struct for AutoFocus

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn field_len(&self) -> usize

Source§

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

Source§

fn to_dynamic_struct(&self) -> DynamicStruct

Source§

impl Struct for DirectionalNavigationMap

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn field_len(&self) -> usize

Source§

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

Source§

fn to_dynamic_struct(&self) -> DynamicStruct

Source§

impl Struct for NavNeighbors

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn field_len(&self) -> usize

Source§

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

Source§

fn to_dynamic_struct(&self) -> DynamicStruct

Source§

impl Struct for TabGroup

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn field_len(&self) -> usize

Source§

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

Source§

fn to_dynamic_struct(&self) -> DynamicStruct

Source§

impl<M> Struct for FocusedInput<M>
where M: Message + Clone + TypePath + FromReflect + MaybeTyped + RegisterForReflection, FocusedInput<M>: Any + Send + Sync,

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn field_len(&self) -> usize

Source§

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

Source§

fn to_dynamic_struct(&self) -> DynamicStruct

Implementors§

Source§

impl Struct for AssetIndex

Source§

impl Struct for Aabb

Source§

impl Struct for CascadesFrusta

Source§

impl Struct for CubemapFrusta

Source§

impl Struct for Frustum

Source§

impl Struct for CustomProjection

Source§

impl Struct for ImageRenderTarget

Source§

impl Struct for SubCameraView

Source§

impl Struct for Viewport

Source§

impl Struct for CascadesVisibleEntities

Source§

impl Struct for CubemapVisibleEntities

Source§

impl Struct for NoFrustumCulling

Source§

impl Struct for VisibilityRange

Source§

impl Struct for VisibleEntities

Source§

impl Struct for VisibleMeshEntities

Source§

impl Struct for OrderIndependentTransparencySettings

Source§

impl Struct for DeferredPrepass

Source§

impl Struct for DepthPrepass

Source§

impl Struct for MotionVectorPrepass

Source§

impl Struct for NormalPrepass

Source§

impl Struct for Skybox

Source§

impl Struct for ComponentTicks

Source§

impl Struct for Tick

Source§

impl Struct for EntityHash

Source§

impl Struct for DefaultQueryFilters

Source§

impl Struct for Disabled

Source§

impl Struct for Internal

Source§

impl Struct for AxisSettings

Source§

impl Struct for ButtonAxisSettings

Source§

impl Struct for ButtonSettings

Source§

impl Struct for GamepadAxisChangedEvent

Source§

impl Struct for GamepadButtonChangedEvent

Source§

impl Struct for GamepadButtonStateChangedEvent

Source§

impl Struct for GamepadConnectionEvent

Source§

impl Struct for GamepadRumbleIntensity

Source§

impl Struct for RawGamepadAxisChangedEvent

Source§

impl Struct for RawGamepadButtonChangedEvent

Source§

impl Struct for DoubleTapGesture

Source§

impl Struct for KeyboardFocusLost

Source§

impl Struct for KeyboardInput

Source§

impl Struct for AccumulatedMouseMotion

Source§

impl Struct for AccumulatedMouseScroll

Source§

impl Struct for MouseButtonInput

Source§

impl Struct for MouseMotion

Source§

impl Struct for MouseWheel

Source§

impl Struct for Cascade

Source§

impl Struct for ClusterZConfig

Source§

impl Struct for CascadeShadowConfig

Source§

impl Struct for Cascades

Source§

impl Struct for ClusteredDecal

Source§

impl Struct for DirectionalLightShadowMap

Source§

impl Struct for DirectionalLightTexture

Source§

impl Struct for FogVolume

Source§

impl Struct for IrradianceVolume

Source§

impl Struct for NotShadowCaster

Source§

impl Struct for NotShadowReceiver

Source§

impl Struct for PointLightShadowMap

Source§

impl Struct for PointLightTexture

Source§

impl Struct for SpotLightTexture

Source§

impl Struct for TransmittedShadowReceiver

Source§

impl Struct for VolumetricFog

Source§

impl Struct for VolumetricLight

Source§

impl Struct for Aabb2d

Source§

impl Struct for Aabb3d

Source§

impl Struct for AabbCast2d

Source§

impl Struct for AabbCast3d

Source§

impl Struct for BoundingCircle

Source§

impl Struct for BoundingCircleCast

Source§

impl Struct for BoundingSphere

Source§

impl Struct for BoundingSphereCast

Source§

impl Struct for RayCast2d

Source§

impl Struct for RayCast3d

Source§

impl Struct for Affine2

Source§

impl Struct for Affine3

Source§

impl Struct for Affine3A

Source§

impl Struct for DAffine2

Source§

impl Struct for DAffine3

Source§

impl Struct for DMat2

Source§

impl Struct for DMat3

Source§

impl Struct for DMat4

Source§

impl Struct for DQuat

Source§

impl Struct for DVec2

Source§

impl Struct for DVec3

Source§

impl Struct for DVec4

Source§

impl Struct for I8Vec2

Source§

impl Struct for I8Vec3

Source§

impl Struct for I8Vec4

Source§

impl Struct for I16Vec2

Source§

impl Struct for I16Vec3

Source§

impl Struct for I16Vec4

Source§

impl Struct for I64Vec2

Source§

impl Struct for I64Vec3

Source§

impl Struct for I64Vec4

Source§

impl Struct for U8Vec2

Source§

impl Struct for U8Vec3

Source§

impl Struct for U8Vec4

Source§

impl Struct for U16Vec2

Source§

impl Struct for U16Vec3

Source§

impl Struct for U16Vec4

Source§

impl Struct for U64Vec2

Source§

impl Struct for U64Vec3

Source§

impl Struct for U64Vec4

Source§

impl Struct for MeshMorphWeights

Source§

impl Struct for SkinnedMesh

Source§

impl Struct for AnnulusMeshBuilder

Source§

impl Struct for Capsule2dMeshBuilder

Source§

impl Struct for Capsule3dMeshBuilder

Source§

impl Struct for CircleMeshBuilder

Source§

impl Struct for CircularSectorMeshBuilder

Source§

impl Struct for CircularSegmentMeshBuilder

Source§

impl Struct for ConeMeshBuilder

Source§

impl Struct for ConicalFrustumMeshBuilder

Source§

impl Struct for ConvexPolygonMeshBuilder

Source§

impl Struct for CuboidMeshBuilder

Source§

impl Struct for CylinderMeshBuilder

Source§

impl Struct for EllipseMeshBuilder

Source§

impl Struct for PlaneMeshBuilder

Source§

impl Struct for Polyline2dMeshBuilder

Source§

impl Struct for RectangleMeshBuilder

Source§

impl Struct for RegularPolygonMeshBuilder

Source§

impl Struct for RhombusMeshBuilder

Source§

impl Struct for SphereMeshBuilder

Source§

impl Struct for TetrahedronMeshBuilder

Source§

impl Struct for TorusMeshBuilder

Source§

impl Struct for Triangle2dMeshBuilder

Source§

impl Struct for Triangle3dMeshBuilder

Source§

impl Struct for ForwardDecal

Source§

impl Struct for Atmosphere

Source§

impl Struct for AtmosphereSettings

Source§

impl Struct for GpuAtmosphereSettings

Source§

impl Struct for Lightmap

Source§

impl Struct for MaterialBindingId

Source§

impl Struct for RenderCascadesVisibleEntities

Source§

impl Struct for RenderCubemapVisibleEntities

Source§

impl Struct for RenderVisibleMeshEntities

Source§

impl Struct for ScreenSpaceAmbientOcclusion

Source§

impl Struct for ScreenSpaceReflections

Source§

impl Struct for NoWireframe

Source§

impl Struct for Wireframe

Source§

impl Struct for WireframeColor

Source§

impl Struct for WireframeConfig

Source§

impl Struct for WireframeMaterial

Source§

impl Struct for RayId

Source§

impl Struct for HitData

Source§

impl Struct for PointerHits

Source§

impl Struct for PointerInputSettings

Source§

impl Struct for Location

Source§

impl Struct for PointerInput

Source§

impl Struct for PointerInteraction

Source§

impl Struct for PointerLocation

Source§

impl Struct for PointerPress

Source§

impl Struct for PickingSettings

Source§

impl Struct for AutoExposure

Source§

impl Struct for AutoExposureCompensationCurve

Source§

impl Struct for Bloom

Source§

impl Struct for BloomPrefilter

Source§

impl Struct for DepthOfField

Source§

impl Struct for ChromaticAberration

Source§

impl Struct for MotionBlur

Source§

impl Struct for DynamicStruct

Source§

impl Struct for TemporalJitter

Source§

impl Struct for OcclusionCulling

Source§

impl Struct for GlobalsUniform

Source§

impl Struct for ReadbackComplete

Source§

impl Struct for SyncToRenderWorld

Source§

impl Struct for TemporaryRenderEntity

Source§

impl Struct for ColorGrading

Source§

impl Struct for ColorGradingGlobal

Source§

impl Struct for ColorGradingSection

Source§

impl Struct for Hdr

Source§

impl Struct for RenderVisibleEntities

Source§

impl Struct for ScreenshotCaptured

Source§

impl Struct for Text2dShadow

Source§

impl Struct for ComputedTextBlock

Source§

impl Struct for GlyphAtlasInfo

Source§

impl Struct for GlyphAtlasLocation

Source§

impl Struct for PositionedGlyph

Source§

impl Struct for TextBounds

Source§

impl Struct for TextEntity

Source§

impl Struct for TextLayoutInfo

Source§

impl Struct for Stopwatch

Source§

impl Struct for ContentSize

Source§

impl Struct for RelativeCursorPosition

Source§

impl Struct for ImageNodeSize

Source§

impl Struct for TextNodeFlags

Source§

impl Struct for CursorOptions

Source§

impl Struct for CustomCursorImage

Source§

impl Struct for CustomCursorUrl

Source§

impl Struct for EnabledButtons

Source§

impl Struct for InternalWindowState

Source§

impl Struct for Monitor

Source§

impl Struct for PrimaryMonitor

Source§

impl Struct for PrimaryWindow

Source§

impl Struct for RequestRedraw

Source§

impl Struct for VideoMode

Source§

impl Struct for WindowBackendScaleFactorChanged

Source§

impl Struct for WindowCloseRequested

Source§

impl Struct for WindowClosed

Source§

impl Struct for WindowClosing

Source§

impl Struct for WindowCreated

Source§

impl Struct for WindowDestroyed

Source§

impl Struct for WindowFocused

Source§

impl Struct for WindowOccluded

Source§

impl Struct for WindowResized

Source§

impl Struct for WindowResolution

Source§

impl Struct for WindowScaleFactorChanged

Source§

impl Struct for WindowThemeChanged

Source§

impl Struct for WakeUp

Source§

impl Struct for Add

Source§

impl Struct for AmbientLight

Source§

impl Struct for AngularColorStop

Source§

impl Struct for Annulus

Source§

impl Struct for Arc2d

Source§

impl Struct for BVec2

Source§

impl Struct for BVec3

Source§

impl Struct for BVec4

Source§

impl Struct for BorderColor

Source§

impl Struct for BorderRadius

Source§

impl Struct for BorderRect

Source§

impl Struct for Button

Source§

impl Struct for CalculatedClip

Source§

impl Struct for Camera2d

Source§

impl Struct for Camera3d

Source§

impl Struct for Camera

Source§

impl Struct for Cancel

Source§

impl Struct for Capsule2d

Source§

impl Struct for Capsule3d

Source§

impl Struct for Circle

Source§

impl Struct for CircularSector

Source§

impl Struct for CircularSegment

Source§

impl Struct for Click

Source§

impl Struct for ColorStop

Source§

impl Struct for ComputedNode

Source§

impl Struct for ComputedUiRenderTargetInfo

Source§

impl Struct for ComputedUiTargetCamera

Source§

impl Struct for Cone

Source§

impl Struct for ConicGradient

Source§

impl Struct for ConicalFrustum

Source§

impl Struct for ConvexPolygon

Source§

impl Struct for Cuboid

Source§

impl Struct for CursorEntered

Source§

impl Struct for CursorLeft

Source§

impl Struct for CursorMoved

Source§

impl Struct for Cylinder

Source§

impl Struct for Despawn

Source§

impl Struct for DirectionalLight

Source§

impl Struct for DistanceFog

Source§

impl Struct for Drag

Source§

impl Struct for DragDrop

Source§

impl Struct for DragEnd

Source§

impl Struct for DragEnter

Source§

impl Struct for DragEntry

Source§

impl Struct for DragLeave

Source§

impl Struct for DragOver

Source§

impl Struct for DragStart

Source§

impl Struct for Ellipse

Source§

impl Struct for EnvironmentMapLight

Source§

impl Struct for Fixed

Source§

impl Struct for Gamepad

Source§

impl Struct for GamepadSettings

Source§

impl Struct for GeneratedEnvironmentMapLight

Source§

impl Struct for GridPlacement

Source§

impl Struct for GridTrack

Source§

impl Struct for Hsla

Source§

impl Struct for Hsva

Source§

impl Struct for Hwba

Source§

impl Struct for IRect

Source§

impl Struct for IVec2

Source§

impl Struct for IVec3

Source§

impl Struct for IVec4

Source§

impl Struct for ImageNode

Source§

impl Struct for InfinitePlane3d

Source§

impl Struct for Insert

Source§

impl Struct for Interval

Source§

impl Struct for Isometry2d

Source§

impl Struct for Isometry3d

Source§

impl Struct for Laba

Source§

impl Struct for Label

Source§

impl Struct for LayoutConfig

Source§

impl Struct for Lcha

Source§

impl Struct for LightProbe

Source§

impl Struct for Line2d

Source§

impl Struct for Line3d

Source§

impl Struct for LinearGradient

Source§

impl Struct for LinearRgba

Source§

impl Struct for Mat2

Source§

impl Struct for Mat3

Source§

impl Struct for Mat3A

Source§

impl Struct for Mat4

Source§

impl Struct for Mesh

Source§

impl Struct for MorphWeights

Source§

impl Struct for Move

Source§

impl Struct for Name

Source§

impl Struct for Node

Source§

impl Struct for Oklaba

Source§

impl Struct for Oklcha

Source§

impl Struct for OrthographicProjection

Source§

impl Struct for Out

Source§

impl Struct for Outline

Source§

impl Struct for Over

Source§

impl Struct for Overflow

Source§

impl Struct for OverflowClipMargin

Source§

impl Struct for PerspectiveProjection

Source§

impl Struct for Pickable

Source§

impl Struct for Plane2d

Source§

impl Struct for Plane3d

Source§

impl Struct for PointLight

Source§

impl Struct for Polygon

Source§

impl Struct for Polyline2d

Source§

impl Struct for Polyline3d

Source§

impl Struct for Press

Source§

impl Struct for Quat

Source§

impl Struct for RadialGradient

Source§

impl Struct for Ray2d

Source§

impl Struct for Ray3d

Source§

impl Struct for Real

Source§

impl Struct for Rect

Source§

impl Struct for Rectangle

Source§

impl Struct for RegularPolygon

Source§

impl Struct for Release

Source§

impl Struct for Remove

Source§

impl Struct for RepeatedGridTrack

Source§

impl Struct for Replace

Source§

impl Struct for ResolvedBorderRadius

Source§

impl Struct for Rhombus

Source§

impl Struct for Rot2

Source§

impl Struct for Scroll

Source§

impl Struct for Segment2d

Source§

impl Struct for Segment3d

Source§

impl Struct for ShadowStyle

Source§

impl Struct for Sphere

Source§

impl Struct for SpotLight

Source§

impl Struct for Sprite

Source§

impl Struct for Srgba

Source§

impl Struct for StandardMaterial

Source§

impl Struct for Tetrahedron

Source§

impl Struct for TextFont

Source§

impl Struct for TextLayout

Source§

impl Struct for TextShadow

Source§

impl Struct for TextureAtlas

Source§

impl Struct for TextureAtlasLayout

Source§

impl Struct for TextureSlicer

Source§

impl Struct for Timer

Source§

impl Struct for Torus

Source§

impl Struct for TouchInput

Source§

impl Struct for Transform

Source§

impl Struct for TransformTreeChanged

Source§

impl Struct for Triangle2d

Source§

impl Struct for Triangle3d

Source§

impl Struct for URect

Source§

impl Struct for UVec2

Source§

impl Struct for UVec3

Source§

impl Struct for UVec4

Source§

impl Struct for UiPosition

Source§

impl Struct for UiRect

Source§

impl Struct for UiTransform

Source§

impl Struct for Val2

Source§

impl Struct for Vec2

Source§

impl Struct for Vec3

Source§

impl Struct for Vec3A

Source§

impl Struct for Vec4

Source§

impl Struct for ViewportNode

Source§

impl Struct for Virtual

Source§

impl Struct for Window

Source§

impl Struct for WindowMoved

Source§

impl Struct for WindowResizeConstraints

Source§

impl Struct for Xyza

Source§

impl<B, E> Struct for ExtendedMaterial<B, E>
where B: Material + FromReflect + TypePath + MaybeTyped + RegisterForReflection, E: MaterialExtension + FromReflect + TypePath + MaybeTyped + RegisterForReflection, ExtendedMaterial<B, E>: Any + Send + Sync,

Source§

impl<E> Struct for Messages<E>
where E: Message + TypePath, Messages<E>: Any + Send + Sync, MessageSequence<E>: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

impl<E> Struct for Pointer<E>
where E: Debug + Clone + Reflect + TypePath + FromReflect + MaybeTyped + RegisterForReflection, Pointer<E>: Any + Send + Sync,

Source§

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

Source§

impl<P> Struct for LinearSpline<P>
where P: VectorSpace + TypePath, LinearSpline<P>: Any + Send + Sync, Vec<P>: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

impl<P> Struct for CubicBSpline<P>
where P: VectorSpace + TypePath, CubicBSpline<P>: Any + Send + Sync, Vec<P>: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

impl<P> Struct for CubicBezier<P>
where P: VectorSpace + TypePath, CubicBezier<P>: Any + Send + Sync, Vec<[P; 4]>: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

impl<P> Struct for CubicCardinalSpline<P>
where P: VectorSpace + TypePath, CubicCardinalSpline<P>: Any + Send + Sync, Vec<P>: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

impl<P> Struct for CubicCurve<P>
where P: VectorSpace + TypePath, CubicCurve<P>: Any + Send + Sync, Vec<CubicSegment<P>>: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

impl<P> Struct for CubicHermite<P>
where P: VectorSpace + TypePath, CubicHermite<P>: Any + Send + Sync, Vec<(P, P)>: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

impl<P> Struct for CubicNurbs<P>
where P: VectorSpace + TypePath, CubicNurbs<P>: Any + Send + Sync, Vec<P>: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

impl<P> Struct for CubicSegment<P>
where P: VectorSpace + TypePath, CubicSegment<P>: Any + Send + Sync, [P; 4]: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

impl<P> Struct for RationalCurve<P>
where P: VectorSpace + TypePath, RationalCurve<P>: Any + Send + Sync, Vec<RationalSegment<P>>: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

impl<P> Struct for RationalSegment<P>
where P: VectorSpace + TypePath, RationalSegment<P>: Any + Send + Sync, [P; 4]: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

impl<S, T, C, D> Struct for ZipCurve<S, T, C, D>
where ZipCurve<S, T, C, D>: Any + Send + Sync, S: TypePath, T: TypePath, C: TypePath + PartialReflect + MaybeTyped + RegisterForReflection, D: TypePath + PartialReflect + MaybeTyped + RegisterForReflection,

Source§

impl<S, T, C, F> Struct for MapCurve<S, T, C, F>
where MapCurve<S, T, C, F>: Any + Send + Sync, C: PartialReflect + TypePath + MaybeTyped + RegisterForReflection, S: TypePath, T: TypePath,

Source§

impl<T> Struct for ColorCurve<T>
where ColorCurve<T>: Any + Send + Sync, T: TypePath, EvenCore<T>: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

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

Source§

impl<T> Struct for WithDerivative<T>
where WithDerivative<T>: Any + Send + Sync, T: HasTangent + TypePath + FromReflect + MaybeTyped + RegisterForReflection, <T as HasTangent>::Tangent: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

impl<T> Struct for WithTwoDerivatives<T>
where WithTwoDerivatives<T>: Any + Send + Sync, T: HasTangent + TypePath + FromReflect + MaybeTyped + RegisterForReflection, <T as HasTangent>::Tangent: FromReflect + TypePath + MaybeTyped + RegisterForReflection, <<T as HasTangent>::Tangent as HasTangent>::Tangent: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

impl<T> Struct for ChunkedUnevenCore<T>
where ChunkedUnevenCore<T>: Any + Send + Sync, T: TypePath, Vec<T>: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

impl<T> Struct for Axis<T>
where Axis<T>: Any + Send + Sync, T: TypePath, HashMap<T, f32>: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

impl<T> Struct for ButtonInput<T>
where T: Clone + Eq + Hash + Send + Sync + 'static + TypePath, ButtonInput<T>: Any + Send + Sync, HashSet<T>: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

impl<T> Struct for ConstantCurve<T>
where ConstantCurve<T>: Any + Send + Sync, T: TypePath + FromReflect + MaybeTyped + RegisterForReflection,

Source§

impl<T> Struct for EasingCurve<T>
where EasingCurve<T>: Any + Send + Sync, T: TypePath + FromReflect + MaybeTyped + RegisterForReflection,

Source§

impl<T> Struct for EvenCore<T>
where EvenCore<T>: Any + Send + Sync, T: TypePath, Vec<T>: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

impl<T> Struct for SampleAutoCurve<T>
where SampleAutoCurve<T>: Any + Send + Sync, T: TypePath, EvenCore<T>: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

impl<T> Struct for Time<T>
where T: Default + TypePath + FromReflect + MaybeTyped + RegisterForReflection, Time<T>: Any + Send + Sync,

Source§

impl<T> Struct for UnevenCore<T>
where UnevenCore<T>: Any + Send + Sync, T: TypePath, Vec<T>: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

impl<T> Struct for UnevenSampleAutoCurve<T>
where UnevenSampleAutoCurve<T>: Any + Send + Sync, T: TypePath, UnevenCore<T>: FromReflect + TypePath + MaybeTyped + RegisterForReflection,

Source§

impl<T, C> Struct for ForeverCurve<T, C>
where ForeverCurve<T, C>: Any + Send + Sync, T: TypePath, C: TypePath + PartialReflect + MaybeTyped + RegisterForReflection,

Source§

impl<T, C> Struct for GraphCurve<T, C>
where GraphCurve<T, C>: Any + Send + Sync, T: TypePath, C: TypePath + PartialReflect + MaybeTyped + RegisterForReflection,

Source§

impl<T, C> Struct for LinearReparamCurve<T, C>
where LinearReparamCurve<T, C>: Any + Send + Sync, T: TypePath, C: TypePath + PartialReflect + MaybeTyped + RegisterForReflection,

Source§

impl<T, C> Struct for PingPongCurve<T, C>
where PingPongCurve<T, C>: Any + Send + Sync, T: TypePath, C: TypePath + PartialReflect + MaybeTyped + RegisterForReflection,

Source§

impl<T, C> Struct for RepeatCurve<T, C>
where RepeatCurve<T, C>: Any + Send + Sync, T: TypePath, C: TypePath + PartialReflect + MaybeTyped + RegisterForReflection,

Source§

impl<T, C> Struct for ReverseCurve<T, C>
where ReverseCurve<T, C>: Any + Send + Sync, T: TypePath, C: TypePath + PartialReflect + MaybeTyped + RegisterForReflection,

Source§

impl<T, C, D> Struct for ChainCurve<T, C, D>
where ChainCurve<T, C, D>: Any + Send + Sync, T: TypePath, C: TypePath + PartialReflect + MaybeTyped + RegisterForReflection, D: TypePath + PartialReflect + MaybeTyped + RegisterForReflection,

Source§

impl<T, C, D> Struct for ContinuationCurve<T, C, D>
where ContinuationCurve<T, C, D>: Any + Send + Sync, T: TypePath + PartialReflect + MaybeTyped + RegisterForReflection, C: TypePath + PartialReflect + MaybeTyped + RegisterForReflection, D: TypePath + PartialReflect + MaybeTyped + RegisterForReflection,

Source§

impl<T, C, D> Struct for CurveReparamCurve<T, C, D>
where CurveReparamCurve<T, C, D>: Any + Send + Sync, T: TypePath, C: TypePath + PartialReflect + MaybeTyped + RegisterForReflection, D: TypePath + PartialReflect + MaybeTyped + RegisterForReflection,

Source§

impl<T, C, F> Struct for ReparamCurve<T, C, F>
where ReparamCurve<T, C, F>: Any + Send + Sync, C: PartialReflect + TypePath + MaybeTyped + RegisterForReflection, T: TypePath,

Source§

impl<T, F> Struct for FunctionCurve<T, F>
where FunctionCurve<T, F>: Any + Send + Sync, T: TypePath,

Source§

impl<T, I> Struct for SampleCurve<T, I>
where SampleCurve<T, I>: Any + Send + Sync, EvenCore<T>: PartialReflect + TypePath + MaybeTyped + RegisterForReflection, T: TypePath,

Source§

impl<T, I> Struct for UnevenSampleCurve<T, I>
where UnevenSampleCurve<T, I>: Any + Send + Sync, UnevenCore<T>: PartialReflect + TypePath + MaybeTyped + RegisterForReflection, T: TypePath,