pub trait Struct: PartialReflect {
// Required methods
fn field(&self, name: &str) -> Option<&dyn PartialReflect>;
fn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>;
fn field_at(&self, index: usize) -> Option<&dyn PartialReflect>;
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>;
fn name_at(&self, index: usize) -> Option<&str>;
fn field_len(&self) -> usize;
fn iter_fields(&self) -> FieldIter<'_> ⓘ;
fn clone_dynamic(&self) -> DynamicStruct;
// Provided method
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§
Sourcefn field(&self, name: &str) -> Option<&dyn PartialReflect>
fn field(&self, name: &str) -> Option<&dyn PartialReflect>
Returns a reference to the value of the field named name
as a &dyn PartialReflect
.
Sourcefn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>
Returns a mutable reference to the value of the field named name
as a
&mut dyn PartialReflect
.
Sourcefn field_at(&self, index: usize) -> Option<&dyn PartialReflect>
fn field_at(&self, index: usize) -> Option<&dyn PartialReflect>
Returns a reference to the value of the field with index index
as a
&dyn PartialReflect
.
Sourcefn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>
Returns a mutable reference to the value of the field with index index
as a &mut dyn PartialReflect
.
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
.
Provided Methods§
Sourcefn get_represented_struct_info(&self) -> Option<&'static StructInfo>
fn get_represented_struct_info(&self) -> Option<&'static StructInfo>
Will return None
if TypeInfo
is not available.
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 PartialReflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>
fn field_at(&self, index: usize) -> Option<&dyn PartialReflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>
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 PartialReflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>
fn field_at(&self, index: usize) -> Option<&dyn PartialReflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>
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 PartialReflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>
fn field_at(&self, index: usize) -> Option<&dyn PartialReflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>
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
Affine2: Any + Send + Sync,
Mat2: FromReflect + TypePath + MaybeTyped + RegisterForReflection,
Vec2: FromReflect + TypePath + MaybeTyped + RegisterForReflection,
Available on crate feature glam
only.
impl Struct for Affine2where
Affine2: Any + Send + Sync,
Mat2: FromReflect + TypePath + MaybeTyped + RegisterForReflection,
Vec2: FromReflect + TypePath + MaybeTyped + RegisterForReflection,
glam
only.fn field(&self, name: &str) -> Option<&dyn PartialReflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>
fn field_at(&self, index: usize) -> Option<&dyn PartialReflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>
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
Affine3A: Any + Send + Sync,
Mat3A: FromReflect + TypePath + MaybeTyped + RegisterForReflection,
Vec3A: FromReflect + TypePath + MaybeTyped + RegisterForReflection,
Available on crate feature glam
only.
impl Struct for Affine3Awhere
Affine3A: Any + Send + Sync,
Mat3A: FromReflect + TypePath + MaybeTyped + RegisterForReflection,
Vec3A: FromReflect + TypePath + MaybeTyped + RegisterForReflection,
glam
only.fn field(&self, name: &str) -> Option<&dyn PartialReflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>
fn field_at(&self, index: usize) -> Option<&dyn PartialReflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>
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 PartialReflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>
fn field_at(&self, index: usize) -> Option<&dyn PartialReflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>
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 PartialReflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>
fn field_at(&self, index: usize) -> Option<&dyn PartialReflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>
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 PartialReflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>
fn field_at(&self, index: usize) -> Option<&dyn PartialReflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>
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 PartialReflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>
fn field_at(&self, index: usize) -> Option<&dyn PartialReflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>
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 PartialReflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>
fn field_at(&self, index: usize) -> Option<&dyn PartialReflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>
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 PartialReflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>
fn field_at(&self, index: usize) -> Option<&dyn PartialReflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>
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 PartialReflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>
fn field_at(&self, index: usize) -> Option<&dyn PartialReflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>
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 PartialReflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>
fn field_at(&self, index: usize) -> Option<&dyn PartialReflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>
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 PartialReflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>
fn field_at(&self, index: usize) -> Option<&dyn PartialReflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>
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
DAffine2: Any + Send + Sync,
DMat2: FromReflect + TypePath + MaybeTyped + RegisterForReflection,
DVec2: FromReflect + TypePath + MaybeTyped + RegisterForReflection,
Available on crate feature glam
only.
impl Struct for DAffine2where
DAffine2: Any + Send + Sync,
DMat2: FromReflect + TypePath + MaybeTyped + RegisterForReflection,
DVec2: FromReflect + TypePath + MaybeTyped + RegisterForReflection,
glam
only.fn field(&self, name: &str) -> Option<&dyn PartialReflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>
fn field_at(&self, index: usize) -> Option<&dyn PartialReflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>
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
DAffine3: Any + Send + Sync,
DMat3: FromReflect + TypePath + MaybeTyped + RegisterForReflection,
DVec3: FromReflect + TypePath + MaybeTyped + RegisterForReflection,
Available on crate feature glam
only.
impl Struct for DAffine3where
DAffine3: Any + Send + Sync,
DMat3: FromReflect + TypePath + MaybeTyped + RegisterForReflection,
DVec3: FromReflect + TypePath + MaybeTyped + RegisterForReflection,
glam
only.fn field(&self, name: &str) -> Option<&dyn PartialReflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>
fn field_at(&self, index: usize) -> Option<&dyn PartialReflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>
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 PartialReflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>
fn field_at(&self, index: usize) -> Option<&dyn PartialReflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>
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 PartialReflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>
fn field_at(&self, index: usize) -> Option<&dyn PartialReflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>
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 PartialReflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>
fn field_at(&self, index: usize) -> Option<&dyn PartialReflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>
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 PartialReflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>
fn field_at(&self, index: usize) -> Option<&dyn PartialReflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>
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 PartialReflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>
fn field_at(&self, index: usize) -> Option<&dyn PartialReflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>
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 PartialReflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>
fn field_at(&self, index: usize) -> Option<&dyn PartialReflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>
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 PartialReflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>
fn field_at(&self, index: usize) -> Option<&dyn PartialReflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>
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 PartialReflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>
fn field_at(&self, index: usize) -> Option<&dyn PartialReflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>
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 PartialReflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>
fn field_at(&self, index: usize) -> Option<&dyn PartialReflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>
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 PartialReflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>
fn field_at(&self, index: usize) -> Option<&dyn PartialReflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>
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 PartialReflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>
fn field_at(&self, index: usize) -> Option<&dyn PartialReflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>
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 PartialReflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>
fn field_at(&self, index: usize) -> Option<&dyn PartialReflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>
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 PartialReflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>
fn field_at(&self, index: usize) -> Option<&dyn PartialReflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>
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 PartialReflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>
fn field_at(&self, index: usize) -> Option<&dyn PartialReflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>
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 PartialReflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>
fn field_at(&self, index: usize) -> Option<&dyn PartialReflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>
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 PartialReflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>
fn field_at(&self, index: usize) -> Option<&dyn PartialReflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>
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 PartialReflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>
fn field_at(&self, index: usize) -> Option<&dyn PartialReflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>
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 PartialReflect>
fn field_mut(&mut self, name: &str) -> Option<&mut dyn PartialReflect>
fn field_at(&self, index: usize) -> Option<&dyn PartialReflect>
fn field_at_mut(&mut self, index: usize) -> Option<&mut dyn PartialReflect>
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.