Trait glamour::AsRaw

source ·
pub trait AsRaw: ToRaw {
    // Required methods
    fn as_raw(&self) -> &Self::Raw;
    fn as_raw_mut(&mut self) -> &mut Self::Raw;
}
Expand description

Reference conversion to glam types.

This is only one-way conversion, because the alignment of Self could be larger than Self::Raw for some types.

Required Methods§

source

fn as_raw(&self) -> &Self::Raw

By-ref conversion to Self::Raw.

source

fn as_raw_mut(&mut self) -> &mut Self::Raw

By-ref mutable conversion to Self::Raw.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl AsRaw for bool

source§

fn as_raw(&self) -> &Self::Raw

source§

fn as_raw_mut(&mut self) -> &mut Self::Raw

source§

impl AsRaw for f32

source§

fn as_raw(&self) -> &Self::Raw

source§

fn as_raw_mut(&mut self) -> &mut Self::Raw

source§

impl AsRaw for f64

source§

fn as_raw(&self) -> &Self::Raw

source§

fn as_raw_mut(&mut self) -> &mut Self::Raw

source§

impl AsRaw for i16

source§

fn as_raw(&self) -> &Self::Raw

source§

fn as_raw_mut(&mut self) -> &mut Self::Raw

source§

impl AsRaw for i32

source§

fn as_raw(&self) -> &Self::Raw

source§

fn as_raw_mut(&mut self) -> &mut Self::Raw

source§

impl AsRaw for i64

source§

fn as_raw(&self) -> &Self::Raw

source§

fn as_raw_mut(&mut self) -> &mut Self::Raw

source§

impl AsRaw for isize

source§

fn as_raw(&self) -> &Self::Raw

source§

fn as_raw_mut(&mut self) -> &mut Self::Raw

source§

impl AsRaw for u16

source§

fn as_raw(&self) -> &Self::Raw

source§

fn as_raw_mut(&mut self) -> &mut Self::Raw

source§

impl AsRaw for u32

source§

fn as_raw(&self) -> &Self::Raw

source§

fn as_raw_mut(&mut self) -> &mut Self::Raw

source§

impl AsRaw for u64

source§

fn as_raw(&self) -> &Self::Raw

source§

fn as_raw_mut(&mut self) -> &mut Self::Raw

source§

impl AsRaw for ()

source§

fn as_raw(&self) -> &Self::Raw

source§

fn as_raw_mut(&mut self) -> &mut Self::Raw

source§

impl AsRaw for usize

source§

fn as_raw(&self) -> &Self::Raw

source§

fn as_raw_mut(&mut self) -> &mut Self::Raw

source§

impl AsRaw for BVec2

source§

fn as_raw(&self) -> &Self::Raw

source§

fn as_raw_mut(&mut self) -> &mut Self::Raw

source§

impl AsRaw for BVec3

source§

fn as_raw(&self) -> &Self::Raw

source§

fn as_raw_mut(&mut self) -> &mut Self::Raw

source§

impl AsRaw for BVec4

source§

fn as_raw(&self) -> &Self::Raw

source§

fn as_raw_mut(&mut self) -> &mut Self::Raw

source§

impl AsRaw for BVec4A

source§

fn as_raw(&self) -> &Self::Raw

source§

fn as_raw_mut(&mut self) -> &mut Self::Raw

source§

impl AsRaw for Quat

source§

fn as_raw(&self) -> &Self::Raw

source§

fn as_raw_mut(&mut self) -> &mut Self::Raw

source§

impl AsRaw for DQuat

source§

fn as_raw(&self) -> &Self::Raw

source§

fn as_raw_mut(&mut self) -> &mut Self::Raw

Implementors§

source§

impl<T> AsRaw for Angle<T>

source§

impl<T: FloatScalar> AsRaw for Matrix2<T>

source§

impl<T: FloatScalar> AsRaw for Matrix3<T>

source§

impl<T: FloatScalar> AsRaw for Matrix4<T>

source§

impl<T: Unit> AsRaw for Point2<T>

source§

impl<T: Unit> AsRaw for Point3<T>

source§

impl<T: Unit> AsRaw for Point4<T>

source§

impl<T: Unit> AsRaw for Size2<T>

source§

impl<T: Unit> AsRaw for Size3<T>

source§

impl<T: Unit> AsRaw for Vector2<T>

source§

impl<T: Unit> AsRaw for Vector3<T>

source§

impl<T: Unit> AsRaw for Vector4<T>