pub struct vec4(/* private fields */);
Expand description
Vector of 4 float
values.
foo: vec4
is equivalent to glsl’s vec4 foo;
§Examples
let x: vec4 = [1f32; 4].into();
Trait Implementations§
Source§impl PartialOrd for vec4
impl PartialOrd for vec4
impl Copy for vec4
impl StructuralPartialEq for vec4
Auto Trait Implementations§
impl Freeze for vec4
impl RefUnwindSafe for vec4
impl Send for vec4
impl Sync for vec4
impl Unpin for vec4
impl UnwindSafe for vec4
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more