[−][src]Struct shader_types::IVec2
Vector of 2 i32
values. Has size 8 and alignment 8.
Fields
inner: [i32; 2]
Implementations
impl IVec2
[src]
pub fn new(inner: [i32; 2]) -> Self
[src]
pub fn from_mint<T: Into<Vector2<i32>>>(value: T) -> Self
[src]
This is supported on crate feature
mint
only.Construct a IVec2
from any type which is convertable into a mint::Vector2<i32>
.
Trait Implementations
impl Clone for IVec2
[src]
impl Copy for IVec2
[src]
impl Debug for IVec2
[src]
impl Default for IVec2
[src]
impl From<[i32; 2]> for IVec2
[src]
impl From<IVec2> for Vector2<i32>
[src]
impl From<IVec2> for [i32; 2]
[src]
impl From<Vector2<i32>> for IVec2
[src]
impl PartialEq<IVec2> for IVec2
[src]
impl PartialOrd<IVec2> for IVec2
[src]
fn partial_cmp(&self, other: &IVec2) -> Option<Ordering>
[src]
fn lt(&self, other: &IVec2) -> bool
[src]
fn le(&self, other: &IVec2) -> bool
[src]
fn gt(&self, other: &IVec2) -> bool
[src]
fn ge(&self, other: &IVec2) -> bool
[src]
impl Pod for IVec2
[src]
impl StructuralPartialEq for IVec2
[src]
impl Zeroable for IVec2
[src]
Auto Trait Implementations
impl RefUnwindSafe for IVec2
impl Send for IVec2
impl Sync for IVec2
impl Unpin for IVec2
impl UnwindSafe for IVec2
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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, 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>,