Enum ambient_api_core::ecs::ComponentVecValue
source · pub enum ComponentVecValue {
Show 30 variants
Empty(Vec<()>),
Bool(Vec<bool>),
EntityId(Vec<EntityId>),
F32(Vec<f32>),
F64(Vec<f64>),
Mat4(Vec<Mat4>),
Quat(Vec<Quat>),
String(Vec<String>),
U8(Vec<u8>),
U16(Vec<u16>),
U32(Vec<u32>),
U64(Vec<u64>),
I8(Vec<i8>),
I16(Vec<i16>),
I32(Vec<i32>),
I64(Vec<i64>),
Vec2(Vec<Vec2>),
Vec3(Vec<Vec3>),
Vec4(Vec<Vec4>),
Uvec2(Vec<UVec2>),
Uvec3(Vec<UVec3>),
Uvec4(Vec<UVec4>),
Ivec2(Vec<IVec2>),
Ivec3(Vec<IVec3>),
Ivec4(Vec<IVec4>),
Duration(Vec<Duration>),
ProceduralMeshHandle(Vec<ProceduralMeshHandle>),
ProceduralTextureHandle(Vec<ProceduralTextureHandle>),
ProceduralSamplerHandle(Vec<ProceduralSamplerHandle>),
ProceduralMaterialHandle(Vec<ProceduralMaterialHandle>),
}
Expand description
A vector value that can be stored in a component.
Variants§
Empty(Vec<()>)
Bool(Vec<bool>)
EntityId(Vec<EntityId>)
F32(Vec<f32>)
F64(Vec<f64>)
Mat4(Vec<Mat4>)
Quat(Vec<Quat>)
String(Vec<String>)
U8(Vec<u8>)
U16(Vec<u16>)
U32(Vec<u32>)
U64(Vec<u64>)
I8(Vec<i8>)
I16(Vec<i16>)
I32(Vec<i32>)
I64(Vec<i64>)
Vec2(Vec<Vec2>)
Vec3(Vec<Vec3>)
Vec4(Vec<Vec4>)
Uvec2(Vec<UVec2>)
Uvec3(Vec<UVec3>)
Uvec4(Vec<UVec4>)
Ivec2(Vec<IVec2>)
Ivec3(Vec<IVec3>)
Ivec4(Vec<IVec4>)
Duration(Vec<Duration>)
ProceduralMeshHandle(Vec<ProceduralMeshHandle>)
ProceduralTextureHandle(Vec<ProceduralTextureHandle>)
ProceduralSamplerHandle(Vec<ProceduralSamplerHandle>)
ProceduralMaterialHandle(Vec<ProceduralMaterialHandle>)
Trait Implementations§
source§impl Clone for ComponentVecValue
impl Clone for ComponentVecValue
source§fn clone(&self) -> ComponentVecValue
fn clone(&self) -> ComponentVecValue
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ComponentVecValue
impl Debug for ComponentVecValue
source§impl<'de> Deserialize<'de> for ComponentVecValue
impl<'de> Deserialize<'de> for ComponentVecValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for ComponentVecValue
impl PartialEq for ComponentVecValue
source§fn eq(&self, other: &ComponentVecValue) -> bool
fn eq(&self, other: &ComponentVecValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ComponentVecValue
impl Serialize for ComponentVecValue
impl StructuralPartialEq for ComponentVecValue
Auto Trait Implementations§
impl RefUnwindSafe for ComponentVecValue
impl Send for ComponentVecValue
impl Sync for ComponentVecValue
impl Unpin for ComponentVecValue
impl UnwindSafe for ComponentVecValue
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more