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§
sourcefn as_raw_mut(&mut self) -> &mut Self::Raw
fn as_raw_mut(&mut self) -> &mut Self::Raw
By-ref mutable conversion to Self::Raw
.
Object Safety§
This trait is not object safe.