#[repr(C)]
pub struct Vector2<T> {
pub x: T,
pub y: T,
}
pub fn new(x: T, y: T) -> Self
The resulting type after applying the + operator.
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
The resulting type after applying the / operator.
The resulting type after applying the / operator.
The resulting type after applying the * operator.
The resulting type after applying the * operator.
The resulting type after applying the * operator.
The resulting type after applying the * operator.
The resulting type after applying the * operator.
The resulting type after applying the * operator.
The resulting type after applying the * operator.
The resulting type after applying the * operator.
The resulting type after applying the - operator.
The resulting type after applying the % operator.
The resulting type after applying the % operator.
The resulting type after applying the - operator.
fn dot(l: &Self, r: &Self) -> Tfn add_vv(l: &Self, r: &Self) -> Selffn sub_vv(l: &Self, r: &Self) -> Selffn mul_vv(l: &Self, r: &Self) -> Selffn div_vv(l: &Self, r: &Self) -> Selffn mul_vs(l: &Self, r: T) -> Selffn div_vs(l: &Self, r: T) -> Selffn rem_vv(l: &Self, r: &Self) -> Selffn min(l: &Self, r: &Self) -> Selffn max(l: &Self, r: &Self) -> Selfimpl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.