encase::vector

Trait AsRefVectorParts

Source
pub trait AsRefVectorParts<T: VectorScalar, const N: usize> {
    // Required method
    fn as_ref_parts(&self) -> &[T; N];
}
Expand description

Enables reading from the vector (via &[T; N])

Required Methods§

Implementations on Foreign Types§

Source§

impl AsRefVectorParts<f32, 2> for Vec2
where Self: AsRef<[f32; 2]>, f32: VectorScalar,

Available on crate feature glam only.
Source§

fn as_ref_parts(&self) -> &[f32; 2]

Source§

impl AsRefVectorParts<f32, 3> for Vec3
where Self: AsRef<[f32; 3]>, f32: VectorScalar,

Available on crate feature glam only.
Source§

fn as_ref_parts(&self) -> &[f32; 3]

Source§

impl AsRefVectorParts<f32, 4> for Vec4
where Self: AsRef<[f32; 4]>, f32: VectorScalar,

Available on crate feature glam only.
Source§

fn as_ref_parts(&self) -> &[f32; 4]

Source§

impl AsRefVectorParts<i32, 2> for IVec2
where Self: AsRef<[i32; 2]>, i32: VectorScalar,

Available on crate feature glam only.
Source§

fn as_ref_parts(&self) -> &[i32; 2]

Source§

impl AsRefVectorParts<i32, 3> for IVec3
where Self: AsRef<[i32; 3]>, i32: VectorScalar,

Available on crate feature glam only.
Source§

fn as_ref_parts(&self) -> &[i32; 3]

Source§

impl AsRefVectorParts<i32, 4> for IVec4
where Self: AsRef<[i32; 4]>, i32: VectorScalar,

Available on crate feature glam only.
Source§

fn as_ref_parts(&self) -> &[i32; 4]

Source§

impl AsRefVectorParts<u32, 2> for UVec2
where Self: AsRef<[u32; 2]>, u32: VectorScalar,

Available on crate feature glam only.
Source§

fn as_ref_parts(&self) -> &[u32; 2]

Source§

impl AsRefVectorParts<u32, 3> for UVec3
where Self: AsRef<[u32; 3]>, u32: VectorScalar,

Available on crate feature glam only.
Source§

fn as_ref_parts(&self) -> &[u32; 3]

Source§

impl AsRefVectorParts<u32, 4> for UVec4
where Self: AsRef<[u32; 4]>, u32: VectorScalar,

Available on crate feature glam only.
Source§

fn as_ref_parts(&self) -> &[u32; 4]

Implementors§