pub trait Struct: Reflect {
// Required methods
fn field(&self, name: &str) -> Option<&dyn Reflect>;
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>;
fn field_at(&self, index: usize) -> Option<&dyn Reflect>;
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>;
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§
Sourcefn field(&self, name: &str) -> Option<&dyn Reflect>
fn field(&self, name: &str) -> Option<&dyn Reflect>
Returns a reference to the value of the field named name
as a &dyn Reflect
.
Sourcefn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
Returns a mutable reference to the value of the field named name
as a
&mut dyn Reflect
.
Sourcefn field_at(&self, index: usize) -> Option<&dyn Reflect>
fn field_at(&self, index: usize) -> Option<&dyn Reflect>
Returns a reference to the value of the field with index index
as a
&dyn Reflect
.
Sourcefn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
Returns a mutable reference to the value of the field with index index
as a &mut dyn Reflect
.
Sourcefn name_at(&self, index: usize) -> Option<&str>
fn name_at(&self, index: usize) -> Option<&str>
Returns the name of the field with index index
.
Sourcefn iter_fields(&self) -> FieldIter<'_> ⓘ
fn iter_fields(&self) -> FieldIter<'_> ⓘ
Returns an iterator over the values of the reflectable fields for this struct.
Sourcefn clone_dynamic(&self) -> DynamicStruct
fn clone_dynamic(&self) -> DynamicStruct
Clones the struct into a DynamicStruct
.
Trait Implementations§
Implementations on Foreign Types§
Source§impl Struct for BVec2
Available on crate feature glam
only.
impl Struct for BVec2
glam
only.fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
fn field_at(&self, index: usize) -> Option<&dyn Reflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
fn name_at(&self, index: usize) -> Option<&str>
fn field_len(&self) -> usize
fn iter_fields(&self) -> FieldIter<'_> ⓘ
fn clone_dynamic(&self) -> DynamicStruct
Source§impl Struct for BVec3
Available on crate feature glam
only.
impl Struct for BVec3
glam
only.fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
fn field_at(&self, index: usize) -> Option<&dyn Reflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
fn name_at(&self, index: usize) -> Option<&str>
fn field_len(&self) -> usize
fn iter_fields(&self) -> FieldIter<'_> ⓘ
fn clone_dynamic(&self) -> DynamicStruct
Source§impl Struct for BVec4
Available on crate feature glam
only.
impl Struct for BVec4
glam
only.fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
fn field_at(&self, index: usize) -> Option<&dyn Reflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
fn name_at(&self, index: usize) -> Option<&str>
fn field_len(&self) -> usize
fn iter_fields(&self) -> FieldIter<'_> ⓘ
fn clone_dynamic(&self) -> DynamicStruct
Source§impl Struct for Affine2where
Self: Any + Send + Sync,
Mat2: FromReflect + TypePath + RegisterForReflection,
Vec2: FromReflect + TypePath + RegisterForReflection,
Available on crate feature glam
only.
impl Struct for Affine2where
Self: Any + Send + Sync,
Mat2: FromReflect + TypePath + RegisterForReflection,
Vec2: FromReflect + TypePath + RegisterForReflection,
glam
only.fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
fn field_at(&self, index: usize) -> Option<&dyn Reflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
fn name_at(&self, index: usize) -> Option<&str>
fn field_len(&self) -> usize
fn iter_fields(&self) -> FieldIter<'_> ⓘ
fn clone_dynamic(&self) -> DynamicStruct
Source§impl Struct for Affine3Awhere
Self: Any + Send + Sync,
Mat3A: FromReflect + TypePath + RegisterForReflection,
Vec3A: FromReflect + TypePath + RegisterForReflection,
Available on crate feature glam
only.
impl Struct for Affine3Awhere
Self: Any + Send + Sync,
Mat3A: FromReflect + TypePath + RegisterForReflection,
Vec3A: FromReflect + TypePath + RegisterForReflection,
glam
only.fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
fn field_at(&self, index: usize) -> Option<&dyn Reflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
fn name_at(&self, index: usize) -> Option<&str>
fn field_len(&self) -> usize
fn iter_fields(&self) -> FieldIter<'_> ⓘ
fn clone_dynamic(&self) -> DynamicStruct
Source§impl Struct for Mat3
Available on crate feature glam
only.
impl Struct for Mat3
glam
only.fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
fn field_at(&self, index: usize) -> Option<&dyn Reflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
fn name_at(&self, index: usize) -> Option<&str>
fn field_len(&self) -> usize
fn iter_fields(&self) -> FieldIter<'_> ⓘ
fn clone_dynamic(&self) -> DynamicStruct
Source§impl Struct for Mat2
Available on crate feature glam
only.
impl Struct for Mat2
glam
only.fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
fn field_at(&self, index: usize) -> Option<&dyn Reflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
fn name_at(&self, index: usize) -> Option<&str>
fn field_len(&self) -> usize
fn iter_fields(&self) -> FieldIter<'_> ⓘ
fn clone_dynamic(&self) -> DynamicStruct
Source§impl Struct for Mat3A
Available on crate feature glam
only.
impl Struct for Mat3A
glam
only.fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
fn field_at(&self, index: usize) -> Option<&dyn Reflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
fn name_at(&self, index: usize) -> Option<&str>
fn field_len(&self) -> usize
fn iter_fields(&self) -> FieldIter<'_> ⓘ
fn clone_dynamic(&self) -> DynamicStruct
Source§impl Struct for Mat4
Available on crate feature glam
only.
impl Struct for Mat4
glam
only.fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
fn field_at(&self, index: usize) -> Option<&dyn Reflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
fn name_at(&self, index: usize) -> Option<&str>
fn field_len(&self) -> usize
fn iter_fields(&self) -> FieldIter<'_> ⓘ
fn clone_dynamic(&self) -> DynamicStruct
Source§impl Struct for Quat
Available on crate feature glam
only.
impl Struct for Quat
glam
only.fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
fn field_at(&self, index: usize) -> Option<&dyn Reflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
fn name_at(&self, index: usize) -> Option<&str>
fn field_len(&self) -> usize
fn iter_fields(&self) -> FieldIter<'_> ⓘ
fn clone_dynamic(&self) -> DynamicStruct
Source§impl Struct for Vec3A
Available on crate feature glam
only.
impl Struct for Vec3A
glam
only.fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
fn field_at(&self, index: usize) -> Option<&dyn Reflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
fn name_at(&self, index: usize) -> Option<&str>
fn field_len(&self) -> usize
fn iter_fields(&self) -> FieldIter<'_> ⓘ
fn clone_dynamic(&self) -> DynamicStruct
Source§impl Struct for Vec4
Available on crate feature glam
only.
impl Struct for Vec4
glam
only.fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
fn field_at(&self, index: usize) -> Option<&dyn Reflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
fn name_at(&self, index: usize) -> Option<&str>
fn field_len(&self) -> usize
fn iter_fields(&self) -> FieldIter<'_> ⓘ
fn clone_dynamic(&self) -> DynamicStruct
Source§impl Struct for Vec2
Available on crate feature glam
only.
impl Struct for Vec2
glam
only.fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
fn field_at(&self, index: usize) -> Option<&dyn Reflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
fn name_at(&self, index: usize) -> Option<&str>
fn field_len(&self) -> usize
fn iter_fields(&self) -> FieldIter<'_> ⓘ
fn clone_dynamic(&self) -> DynamicStruct
Source§impl Struct for Vec3
Available on crate feature glam
only.
impl Struct for Vec3
glam
only.fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
fn field_at(&self, index: usize) -> Option<&dyn Reflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
fn name_at(&self, index: usize) -> Option<&str>
fn field_len(&self) -> usize
fn iter_fields(&self) -> FieldIter<'_> ⓘ
fn clone_dynamic(&self) -> DynamicStruct
Source§impl Struct for DAffine2where
Self: Any + Send + Sync,
DMat2: FromReflect + TypePath + RegisterForReflection,
DVec2: FromReflect + TypePath + RegisterForReflection,
Available on crate feature glam
only.
impl Struct for DAffine2where
Self: Any + Send + Sync,
DMat2: FromReflect + TypePath + RegisterForReflection,
DVec2: FromReflect + TypePath + RegisterForReflection,
glam
only.fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
fn field_at(&self, index: usize) -> Option<&dyn Reflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
fn name_at(&self, index: usize) -> Option<&str>
fn field_len(&self) -> usize
fn iter_fields(&self) -> FieldIter<'_> ⓘ
fn clone_dynamic(&self) -> DynamicStruct
Source§impl Struct for DAffine3where
Self: Any + Send + Sync,
DMat3: FromReflect + TypePath + RegisterForReflection,
DVec3: FromReflect + TypePath + RegisterForReflection,
Available on crate feature glam
only.
impl Struct for DAffine3where
Self: Any + Send + Sync,
DMat3: FromReflect + TypePath + RegisterForReflection,
DVec3: FromReflect + TypePath + RegisterForReflection,
glam
only.fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
fn field_at(&self, index: usize) -> Option<&dyn Reflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
fn name_at(&self, index: usize) -> Option<&str>
fn field_len(&self) -> usize
fn iter_fields(&self) -> FieldIter<'_> ⓘ
fn clone_dynamic(&self) -> DynamicStruct
Source§impl Struct for DMat2
Available on crate feature glam
only.
impl Struct for DMat2
glam
only.fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
fn field_at(&self, index: usize) -> Option<&dyn Reflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
fn name_at(&self, index: usize) -> Option<&str>
fn field_len(&self) -> usize
fn iter_fields(&self) -> FieldIter<'_> ⓘ
fn clone_dynamic(&self) -> DynamicStruct
Source§impl Struct for DMat3
Available on crate feature glam
only.
impl Struct for DMat3
glam
only.fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
fn field_at(&self, index: usize) -> Option<&dyn Reflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
fn name_at(&self, index: usize) -> Option<&str>
fn field_len(&self) -> usize
fn iter_fields(&self) -> FieldIter<'_> ⓘ
fn clone_dynamic(&self) -> DynamicStruct
Source§impl Struct for DMat4
Available on crate feature glam
only.
impl Struct for DMat4
glam
only.fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
fn field_at(&self, index: usize) -> Option<&dyn Reflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
fn name_at(&self, index: usize) -> Option<&str>
fn field_len(&self) -> usize
fn iter_fields(&self) -> FieldIter<'_> ⓘ
fn clone_dynamic(&self) -> DynamicStruct
Source§impl Struct for DQuat
Available on crate feature glam
only.
impl Struct for DQuat
glam
only.fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
fn field_at(&self, index: usize) -> Option<&dyn Reflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
fn name_at(&self, index: usize) -> Option<&str>
fn field_len(&self) -> usize
fn iter_fields(&self) -> FieldIter<'_> ⓘ
fn clone_dynamic(&self) -> DynamicStruct
Source§impl Struct for DVec2
Available on crate feature glam
only.
impl Struct for DVec2
glam
only.fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
fn field_at(&self, index: usize) -> Option<&dyn Reflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
fn name_at(&self, index: usize) -> Option<&str>
fn field_len(&self) -> usize
fn iter_fields(&self) -> FieldIter<'_> ⓘ
fn clone_dynamic(&self) -> DynamicStruct
Source§impl Struct for DVec3
Available on crate feature glam
only.
impl Struct for DVec3
glam
only.fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
fn field_at(&self, index: usize) -> Option<&dyn Reflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
fn name_at(&self, index: usize) -> Option<&str>
fn field_len(&self) -> usize
fn iter_fields(&self) -> FieldIter<'_> ⓘ
fn clone_dynamic(&self) -> DynamicStruct
Source§impl Struct for DVec4
Available on crate feature glam
only.
impl Struct for DVec4
glam
only.fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
fn field_at(&self, index: usize) -> Option<&dyn Reflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
fn name_at(&self, index: usize) -> Option<&str>
fn field_len(&self) -> usize
fn iter_fields(&self) -> FieldIter<'_> ⓘ
fn clone_dynamic(&self) -> DynamicStruct
Source§impl Struct for IVec2
Available on crate feature glam
only.
impl Struct for IVec2
glam
only.fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
fn field_at(&self, index: usize) -> Option<&dyn Reflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
fn name_at(&self, index: usize) -> Option<&str>
fn field_len(&self) -> usize
fn iter_fields(&self) -> FieldIter<'_> ⓘ
fn clone_dynamic(&self) -> DynamicStruct
Source§impl Struct for IVec3
Available on crate feature glam
only.
impl Struct for IVec3
glam
only.fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
fn field_at(&self, index: usize) -> Option<&dyn Reflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
fn name_at(&self, index: usize) -> Option<&str>
fn field_len(&self) -> usize
fn iter_fields(&self) -> FieldIter<'_> ⓘ
fn clone_dynamic(&self) -> DynamicStruct
Source§impl Struct for IVec4
Available on crate feature glam
only.
impl Struct for IVec4
glam
only.fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
fn field_at(&self, index: usize) -> Option<&dyn Reflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
fn name_at(&self, index: usize) -> Option<&str>
fn field_len(&self) -> usize
fn iter_fields(&self) -> FieldIter<'_> ⓘ
fn clone_dynamic(&self) -> DynamicStruct
Source§impl Struct for I64Vec2
Available on crate feature glam
only.
impl Struct for I64Vec2
glam
only.fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
fn field_at(&self, index: usize) -> Option<&dyn Reflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
fn name_at(&self, index: usize) -> Option<&str>
fn field_len(&self) -> usize
fn iter_fields(&self) -> FieldIter<'_> ⓘ
fn clone_dynamic(&self) -> DynamicStruct
Source§impl Struct for I64Vec3
Available on crate feature glam
only.
impl Struct for I64Vec3
glam
only.fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
fn field_at(&self, index: usize) -> Option<&dyn Reflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
fn name_at(&self, index: usize) -> Option<&str>
fn field_len(&self) -> usize
fn iter_fields(&self) -> FieldIter<'_> ⓘ
fn clone_dynamic(&self) -> DynamicStruct
Source§impl Struct for I64Vec4
Available on crate feature glam
only.
impl Struct for I64Vec4
glam
only.fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
fn field_at(&self, index: usize) -> Option<&dyn Reflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
fn name_at(&self, index: usize) -> Option<&str>
fn field_len(&self) -> usize
fn iter_fields(&self) -> FieldIter<'_> ⓘ
fn clone_dynamic(&self) -> DynamicStruct
Source§impl Struct for UVec2
Available on crate feature glam
only.
impl Struct for UVec2
glam
only.fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
fn field_at(&self, index: usize) -> Option<&dyn Reflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
fn name_at(&self, index: usize) -> Option<&str>
fn field_len(&self) -> usize
fn iter_fields(&self) -> FieldIter<'_> ⓘ
fn clone_dynamic(&self) -> DynamicStruct
Source§impl Struct for UVec3
Available on crate feature glam
only.
impl Struct for UVec3
glam
only.fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
fn field_at(&self, index: usize) -> Option<&dyn Reflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
fn name_at(&self, index: usize) -> Option<&str>
fn field_len(&self) -> usize
fn iter_fields(&self) -> FieldIter<'_> ⓘ
fn clone_dynamic(&self) -> DynamicStruct
Source§impl Struct for UVec4
Available on crate feature glam
only.
impl Struct for UVec4
glam
only.fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
fn field_at(&self, index: usize) -> Option<&dyn Reflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
fn name_at(&self, index: usize) -> Option<&str>
fn field_len(&self) -> usize
fn iter_fields(&self) -> FieldIter<'_> ⓘ
fn clone_dynamic(&self) -> DynamicStruct
Source§impl Struct for U64Vec2
Available on crate feature glam
only.
impl Struct for U64Vec2
glam
only.fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
fn field_at(&self, index: usize) -> Option<&dyn Reflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
fn name_at(&self, index: usize) -> Option<&str>
fn field_len(&self) -> usize
fn iter_fields(&self) -> FieldIter<'_> ⓘ
fn clone_dynamic(&self) -> DynamicStruct
Source§impl Struct for U64Vec3
Available on crate feature glam
only.
impl Struct for U64Vec3
glam
only.fn field(&self, name: &str) -> Option<&dyn Reflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn Reflect>
fn field_at(&self, index: usize) -> Option<&dyn Reflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn Reflect>
fn name_at(&self, index: usize) -> Option<&str>
fn field_len(&self) -> usize
fn iter_fields(&self) -> FieldIter<'_> ⓘ
fn clone_dynamic(&self) -> DynamicStruct
Source§impl Struct for U64Vec4
Available on crate feature glam
only.
impl Struct for U64Vec4
glam
only.