[−][src]Struct glsl_layout::vec4
Vector of 4 float
values.
foo: vec4
is equivalent to glsl's vec4 foo;
Examples
let x: vec4 = [1f32; 4].into();
Trait Implementations
impl Std140 for vec4
[src]
impl AsStd140 for vec4
[src]
type Align = Align16
ZST that enforces alignment required for this type.
type Std140 = vec4
Type that contain same data with memory layout matching glsl's layout(std140)
.
fn std140(&self) -> vec4
[src]
impl Copy for vec4
[src]
impl AsRef<[f32; 4]> for vec4
[src]
impl AsRef<[f32]> for vec4
[src]
impl Default for vec4
[src]
impl Clone for vec4
[src]
fn clone(&self) -> vec4
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialOrd<vec4> for vec4
[src]
fn partial_cmp(&self, other: &vec4) -> Option<Ordering>
[src]
fn lt(&self, other: &vec4) -> bool
[src]
fn le(&self, other: &vec4) -> bool
[src]
fn gt(&self, other: &vec4) -> bool
[src]
fn ge(&self, other: &vec4) -> bool
[src]
impl PartialEq<vec4> for vec4
[src]
impl<T> From<[T; 4]> for vec4 where
T: Into<float>,
[src]
T: Into<float>,
impl AsMut<[f32; 4]> for vec4
[src]
impl AsMut<[f32]> for vec4
[src]
impl Debug for vec4
[src]
Auto Trait Implementations
impl Unpin for vec4
impl Sync for vec4
impl Send for vec4
impl UnwindSafe for vec4
impl RefUnwindSafe for vec4
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,