pub trait FromVectorParts<T: VectorScalar, const N: usize> {
// Required method
fn from_parts(parts: [T; N]) -> Self;
}
Expand description
Enables the creation of a vector (via [T; N]
)
Required Methods§
fn from_parts(parts: [T; N]) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl FromVectorParts<f32, 2> for Vec2
Available on crate feature glam
only.
impl FromVectorParts<f32, 2> for Vec2
Available on crate feature
glam
only.fn from_parts(parts: [f32; 2]) -> Self
Source§impl FromVectorParts<f32, 3> for Vec3
Available on crate feature glam
only.
impl FromVectorParts<f32, 3> for Vec3
Available on crate feature
glam
only.fn from_parts(parts: [f32; 3]) -> Self
Source§impl FromVectorParts<f32, 4> for Vec4
Available on crate feature glam
only.
impl FromVectorParts<f32, 4> for Vec4
Available on crate feature
glam
only.fn from_parts(parts: [f32; 4]) -> Self
Source§impl FromVectorParts<i32, 2> for IVec2
Available on crate feature glam
only.
impl FromVectorParts<i32, 2> for IVec2
Available on crate feature
glam
only.fn from_parts(parts: [i32; 2]) -> Self
Source§impl FromVectorParts<i32, 3> for IVec3
Available on crate feature glam
only.
impl FromVectorParts<i32, 3> for IVec3
Available on crate feature
glam
only.fn from_parts(parts: [i32; 3]) -> Self
Source§impl FromVectorParts<i32, 4> for IVec4
Available on crate feature glam
only.
impl FromVectorParts<i32, 4> for IVec4
Available on crate feature
glam
only.fn from_parts(parts: [i32; 4]) -> Self
Source§impl FromVectorParts<u32, 2> for UVec2
Available on crate feature glam
only.
impl FromVectorParts<u32, 2> for UVec2
Available on crate feature
glam
only.fn from_parts(parts: [u32; 2]) -> Self
Source§impl FromVectorParts<u32, 3> for UVec3
Available on crate feature glam
only.
impl FromVectorParts<u32, 3> for UVec3
Available on crate feature
glam
only.fn from_parts(parts: [u32; 3]) -> Self
Source§impl FromVectorParts<u32, 4> for UVec4
Available on crate feature glam
only.
impl FromVectorParts<u32, 4> for UVec4
Available on crate feature
glam
only.