pub struct ivec2(/* private fields */);
Expand description
Vector of 2 int
values.
foo: ivec2
is equivalent to glsl’s ivec2 foo;
§Examples
let x: ivec2 = [1i32; 2].into();
Trait Implementations§
Source§impl Ord for ivec2
impl Ord for ivec2
Source§impl PartialOrd for ivec2
impl PartialOrd for ivec2
impl Copy for ivec2
impl Eq for ivec2
impl StructuralPartialEq for ivec2
Auto Trait Implementations§
impl Freeze for ivec2
impl RefUnwindSafe for ivec2
impl Send for ivec2
impl Sync for ivec2
impl Unpin for ivec2
impl UnwindSafe for ivec2
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