Trait encase::vector::AsMutVectorParts

source ·
pub trait AsMutVectorParts<T: VectorScalar, const N: usize> {
    // Required method
    fn as_mut_parts(&mut self) -> &mut [T; N];
}
Expand description

Enables writing to the vector (via &mut [T; N])

Required Methods§

source

fn as_mut_parts(&mut self) -> &mut [T; N]

Implementations on Foreign Types§

source§

impl AsMutVectorParts<f32, 2> for Vec2
where Self: AsMut<[f32; 2]>, f32: VectorScalar,

source§

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

source§

impl AsMutVectorParts<f32, 3> for Vec3
where Self: AsMut<[f32; 3]>, f32: VectorScalar,

source§

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

source§

impl AsMutVectorParts<f32, 4> for Vec4
where Self: AsMut<[f32; 4]>, f32: VectorScalar,

source§

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

source§

impl AsMutVectorParts<i32, 2> for IVec2
where Self: AsMut<[i32; 2]>, i32: VectorScalar,

source§

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

source§

impl AsMutVectorParts<i32, 3> for IVec3
where Self: AsMut<[i32; 3]>, i32: VectorScalar,

source§

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

source§

impl AsMutVectorParts<i32, 4> for IVec4
where Self: AsMut<[i32; 4]>, i32: VectorScalar,

source§

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

source§

impl AsMutVectorParts<u32, 2> for UVec2
where Self: AsMut<[u32; 2]>, u32: VectorScalar,

source§

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

source§

impl AsMutVectorParts<u32, 3> for UVec3
where Self: AsMut<[u32; 3]>, u32: VectorScalar,

source§

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

source§

impl AsMutVectorParts<u32, 4> for UVec4
where Self: AsMut<[u32; 4]>, u32: VectorScalar,

source§

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

Implementors§