Struct oc_wasm_opencomputers::common::Vector2  
source · pub struct Vector2 {
    pub x: i32,
    pub y: i32,
}Expand description
A 2D integer vector.
Fields§
§x: i32The vector’s X component.
y: i32The vector’s Y component.
Trait Implementations§
source§impl Ord for Vector2
 
impl Ord for Vector2
source§impl PartialEq for Vector2
 
impl PartialEq for Vector2
source§impl PartialOrd for Vector2
 
impl PartialOrd for Vector2
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
 
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for 
self and other) and is used by the <=
operator. Read moreimpl Copy for Vector2
impl Eq for Vector2
impl StructuralPartialEq for Vector2
Auto Trait Implementations§
impl Freeze for Vector2
impl RefUnwindSafe for Vector2
impl Send for Vector2
impl Sync for Vector2
impl Unpin for Vector2
impl UnwindSafe for Vector2
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