glamour

Struct Size2

source
#[repr(C)]
pub struct Size2<U: Unit = f32> { pub width: U::Scalar, pub height: U::Scalar, }
Expand description

2D size.

Fields§

§width: U::Scalar

Width

§height: U::Scalar

Height

Implementations§

source§

impl<T: Unit> Size2<T>

source

pub fn from_vector(vec: Vector2<T>) -> Self

Interpret vec as size.

source

pub fn to_vector(self) -> Vector2<T>

Convert to vector.

source

pub fn as_vector(&self) -> &Vector2<T>

Reinterpret as vector.

source

pub fn as_vector_mut(&mut self) -> &mut Vector2<T>

Reinterpret as vector.

source

pub fn is_empty(self) -> bool

True if any component is zero, or negative, or NaN.

source

pub fn with_width(self, width: T::Scalar) -> Self

Replace the width component with a new value.

source

pub fn with_height(self, height: T::Scalar) -> Self

Replace the width component with a new value.

source§

impl<T: Unit> Size2<T>

source

pub fn splat(scalar: T::Scalar) -> Self

Set all elements to scalar.

source

pub fn clamp(self, min: Self, max: Self) -> Self

Clamp all elements within min and max.

source

pub fn min(self, other: Self) -> Self

Return by-element minimum.

source

pub fn max(self, other: Self) -> Self

Return by-element maximum.

source

pub fn min_element(self) -> T::Scalar

Min element.

source

pub fn max_element(self) -> T::Scalar

Max element.

source

pub fn write_to_slice(self, slice: &mut [T::Scalar])

Write this vector type to a slice.

source

pub fn with_x(self, x: T::Scalar) -> Self

Replace x component.

source

pub fn with_y(self, x: T::Scalar) -> Self

Replace y component.

source

pub fn element_sum(self) -> T::Scalar

Sum of all elements.

source

pub fn element_product(self) -> T::Scalar

Product of all elements.

source

pub fn as_array(&self) -> &[T::Scalar; 2]

Reinterpret as array.

source

pub fn as_array_mut(&mut self) -> &mut [T::Scalar; 2]

Reinterpret as mutable array.

source

pub fn get(&self, index: usize) -> T::Scalar

Get component at index.

source

pub fn set(&mut self, index: usize, value: T::Scalar)

Set component at index.

source

pub fn const_get<const N: usize>(&self) -> T::Scalar

Get component at index N.

source

pub fn const_set<const N: usize>(&mut self, value: T::Scalar)

Set component at index N.

source

pub fn map<F: Fn(T::Scalar) -> T::Scalar>(self, f: F) -> Self

Returns a vector containing each element of self modified by a mapping function f.

source

pub fn from_untyped(untyped: Size2<T::Scalar>) -> Size2<T>

Bitcast an untyped instance to self.

source

pub fn to_untyped(self) -> Size2<T::Scalar>

Bitcast self to an untyped instance.

source

pub fn as_untyped(&self) -> &Size2<T::Scalar>

Reinterpret cast self as the untyped variant.

source

pub fn as_untyped_mut(&mut self) -> &mut Size2<T::Scalar>

Reinterpret cast self as the untyped variant.

source

pub fn cast<T2>(self) -> Size2<T2>
where T2: Unit<Scalar = T::Scalar>,

Cast to a different coordinate space with the same underlying scalar type.

source

pub fn cast_ref<T2>(&self) -> &Size2<T2>
where T2: Unit<Scalar = T::Scalar>,

Cast to a different coordinate space with the same underlying scalar type.

source

pub fn cast_mut<T2>(&mut self) -> &mut Size2<T2>
where T2: Unit<Scalar = T::Scalar>,

Cast to a different coordinate space with the same underlying scalar type.

source

pub fn as_<T2>(self) -> Size2<T2>
where T: Unit<Scalar: AsPrimitive<T2::Scalar>>, T2: Unit,

Cast to a different coordinate space with scalar type conversion through the as operator (potentially narrowing or losing precision).

source

pub fn try_cast<T2>(self) -> Option<Size2<T2>>
where T2: Unit,

Cast to a different coordinate space with scalar type conversion. Returns None if any component could not be converted to the target scalar type.

source

pub fn to_tuple(self) -> (T::Scalar, T::Scalar)

Convert this Size2 to a tuple.

source

pub fn from_tuple((width, height): (T::Scalar, T::Scalar)) -> Self

Create from tuple.

source§

impl<T: FloatUnit> Size2<T>

source

pub fn ceil(self) -> Self

Round all components up.

source

pub fn exp(self) -> Self

e^self by component

source

pub fn floor(self) -> Self

Round all components down.

source

pub fn fract(self) -> Self

source

pub fn fract_gl(self) -> Self

source

pub fn is_finite(self) -> bool

True if all components are non-infinity and non-NaN.

source

pub fn is_nan(self) -> bool

True if any component is NaN.

source

pub fn lerp(self, rhs: Self, s: T::Scalar) -> Self

Linear interpolation.

source

pub fn powf(self, n: T::Scalar) -> Self

self^n by component

source

pub fn recip(self) -> Self

1.0/self by component

source

pub fn round(self) -> Self

Round all components.

source

pub fn copysign(self, rhs: Self) -> Self

Returns a vector with signs of rhs and the magnitudes of self.

source§

impl<T: SignedUnit> Size2<T>

source

pub fn signum(self) -> Self

Returns a vector with elements representing the sign of self.

source

pub fn abs(self) -> Self

Returns a vector containing the absolute value of each element of self.

source

pub fn rem_euclid(self, rhs: Self) -> Self

Returns the element-wise remainder of Euclidean division of self`` by rhs`.

§Panics

This function will panic if any rhs element is 0 or the division results in overflow.

source§

impl<T: IntUnit> Size2<T>

source

pub fn saturating_add(self, rhs: Self) -> Self

Returns a vector containing the saturating addition of self and rhs.

source

pub fn saturating_sub(self, rhs: Self) -> Self

Returns a vector containing the saturating subtraction of self and rhs.

source

pub fn saturating_mul(self, rhs: Self) -> Self

Returns a vector containing the saturating multiplication of self and rhs.

source

pub fn saturating_div(self, rhs: Self) -> Self

Returns a vector containing the saturating division of self and rhs.

source

pub fn wrapping_add(self, rhs: Self) -> Self

Returns a vector containing the wrapping addition of self and rhs.

source

pub fn wrapping_sub(self, rhs: Self) -> Self

Returns a vector containing the wrapping subtraction of self and rhs.

source

pub fn wrapping_mul(self, rhs: Self) -> Self

Returns a vector containing the wrapping multiplication of self and rhs.

source

pub fn wrapping_div(self, rhs: Self) -> Self

Returns a vector containing the wrapping division of self and rhs.

source§

impl<T: Unit> Size2<T>

source

pub fn swizzle<const X: usize, const Y: usize>(&self) -> Vector2<T>

Select components of this vector and return a new vector containing those components.

source§

impl<T: Unit> Size2<T>

source

pub const ZERO: Self = _

All zeroes.

source

pub const ONE: Self = _

All ones.

source

pub const X: Self = _

Unit vector in the direction of the X axis.

source

pub const Y: Self = _

Unit vector in the direction of the Y axis.

source

pub const AXES: [Self; 2] = _

The unit axes.

source

pub fn as_raw(&self) -> &<T::Scalar as Scalar>::Vec2

Transparently cast this type to its underlying, bitwise compatible glam type.

source

pub fn to_raw(self) -> <T::Scalar as Scalar>::Vec2

Transparently cast this type to its underlying, bitwise compatible glam type.

source

pub fn from_raw(vec: <T::Scalar as Scalar>::Vec2) -> Self

Convert a raw glam vector to this type. This is a zero-overhead cast.

source§

impl<T: FloatUnit> Size2<T>

source

pub const NAN: Self = _

All NaN.

source

pub const INFINITY: Self = _

All positive infinity.

source

pub const NEG_INFINITY: Self = _

All negative infinity.

source

pub fn is_nan_mask(self) -> BVec2

Return a mask where each bit is set if the corresponding component is NaN.

source

pub fn is_finite_mask(self) -> BVec2

Performs is_finite on each element of self, returning a vector mask of the results.

source§

impl<T: SignedUnit> Size2<T>

source

pub const NEG_ONE: Self = _

All negative one.

source

pub const NEG_X: Self = _

(-1, 0)

source

pub const NEG_Y: Self = _

(0, -1)

source§

impl<T: Unit> Size2<T>

source

pub fn from_array(array: [T::Scalar; 2]) -> Self

Creates a new vector from an array.

source

pub fn to_array(&self) -> [T::Scalar; 2]

[x, y]

source

pub fn extend(self, z: T::Scalar) -> Size3<T>

Creates a 3D vector from self and the given z value.

source

pub fn cmpeq(self, rhs: Self) -> BVec2

Returns a vector mask containing the result of a == comparison for each element of self and rhs.

source

pub fn cmpne(self, rhs: Self) -> BVec2

Returns a vector mask containing the result of a != comparison for each element of self and rhs.

source

pub fn cmpge(self, rhs: Self) -> BVec2

Returns a vector mask containing the result of a >= comparison for each element of self and rhs.

source

pub fn cmpgt(self, rhs: Self) -> BVec2

Returns a vector mask containing the result of a > comparison for each element of self and rhs.

source

pub fn cmple(self, rhs: Self) -> BVec2

Returns a vector mask containing the result of a <= comparison for each element of self and rhs.

source

pub fn cmplt(self, rhs: Self) -> BVec2

Returns a vector mask containing the result of a < comparison for each element of self and rhs.

source

pub fn select(mask: BVec2, if_true: Self, if_false: Self) -> Self

Creates a vector from the elements in if_true and if_false, selecting which to use for each element of self.

A true element in the mask uses the corresponding element from if_true, and false uses the element from if_false.

source§

impl<T: Unit> Size2<T>

source

pub const fn new(width: T::Scalar, height: T::Scalar) -> Self

New size.

source

pub fn area(&self) -> T::Scalar

Calculate the area.

Trait Implementations§

source§

impl<T: FloatUnit> AbsDiffEq for Size2<T>

source§

type Epsilon = <<T as Unit>::Scalar as AbsDiffEq>::Epsilon

Used for specifying relative comparisons.
source§

fn default_epsilon() -> Self::Epsilon

The default tolerance to use when testing values that are close together. Read more
source§

fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool

A test for equality that uses the absolute difference to compute the approximate equality of two numbers.
source§

fn abs_diff_ne(&self, other: &Self, epsilon: Self::Epsilon) -> bool

The inverse of AbsDiffEq::abs_diff_eq.
source§

impl<T: Unit> Add<&Size2<T>> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Size2<T>) -> Size2<T>

Performs the + operation. Read more
source§

impl<T: Unit> Add<&Size2<T>> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &Size2<T>) -> Size2<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = f32>> Add<&f32> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &f32) -> Size2<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = f32>> Add<&f32> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &f32) -> Size2<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = f64>> Add<&f64> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &f64) -> Size2<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = f64>> Add<&f64> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &f64) -> Size2<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = i16>> Add<&i16> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &i16) -> Size2<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = i16>> Add<&i16> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &i16) -> Size2<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = i32>> Add<&i32> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &i32) -> Size2<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = i32>> Add<&i32> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &i32) -> Size2<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = i64>> Add<&i64> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &i64) -> Size2<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = i64>> Add<&i64> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &i64) -> Size2<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = u16>> Add<&u16> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u16) -> Size2<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = u16>> Add<&u16> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u16) -> Size2<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = u32>> Add<&u32> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u32) -> Size2<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = u32>> Add<&u32> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u32) -> Size2<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = u64>> Add<&u64> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u64) -> Size2<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = u64>> Add<&u64> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &u64) -> Size2<T>

Performs the + operation. Read more
source§

impl<T: Unit> Add<Size2<T>> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: Size2<T>) -> Size2<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = f32>> Add<f32> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: f32) -> Size2<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = f32>> Add<f32> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: f32) -> Size2<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = f64>> Add<f64> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: f64) -> Size2<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = f64>> Add<f64> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: f64) -> Size2<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = i16>> Add<i16> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: i16) -> Size2<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = i16>> Add<i16> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: i16) -> Size2<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = i32>> Add<i32> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: i32) -> Size2<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = i32>> Add<i32> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: i32) -> Size2<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = i64>> Add<i64> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: i64) -> Size2<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = i64>> Add<i64> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: i64) -> Size2<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = u16>> Add<u16> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: u16) -> Size2<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = u16>> Add<u16> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: u16) -> Size2<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = u32>> Add<u32> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: u32) -> Size2<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = u32>> Add<u32> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: u32) -> Size2<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = u64>> Add<u64> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: u64) -> Size2<T>

Performs the + operation. Read more
source§

impl<T: Unit<Scalar = u64>> Add<u64> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: u64) -> Size2<T>

Performs the + operation. Read more
source§

impl<T: Unit> Add for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the + operator.
source§

fn add(self, rhs: Size2<T>) -> Size2<T>

Performs the + operation. Read more
source§

impl<T: Unit> AddAssign<&Size2<T>> for Size2<T>

source§

fn add_assign(&mut self, rhs: &Size2<T>)

Performs the += operation. Read more
source§

impl<T: Unit<Scalar = f32>> AddAssign<&f32> for Size2<T>

source§

fn add_assign(&mut self, rhs: &f32)

Performs the += operation. Read more
source§

impl<T: Unit<Scalar = f64>> AddAssign<&f64> for Size2<T>

source§

fn add_assign(&mut self, rhs: &f64)

Performs the += operation. Read more
source§

impl<T: Unit<Scalar = i16>> AddAssign<&i16> for Size2<T>

source§

fn add_assign(&mut self, rhs: &i16)

Performs the += operation. Read more
source§

impl<T: Unit<Scalar = i32>> AddAssign<&i32> for Size2<T>

source§

fn add_assign(&mut self, rhs: &i32)

Performs the += operation. Read more
source§

impl<T: Unit<Scalar = i64>> AddAssign<&i64> for Size2<T>

source§

fn add_assign(&mut self, rhs: &i64)

Performs the += operation. Read more
source§

impl<T: Unit<Scalar = u16>> AddAssign<&u16> for Size2<T>

source§

fn add_assign(&mut self, rhs: &u16)

Performs the += operation. Read more
source§

impl<T: Unit<Scalar = u32>> AddAssign<&u32> for Size2<T>

source§

fn add_assign(&mut self, rhs: &u32)

Performs the += operation. Read more
source§

impl<T: Unit<Scalar = u64>> AddAssign<&u64> for Size2<T>

source§

fn add_assign(&mut self, rhs: &u64)

Performs the += operation. Read more
source§

impl<T: Unit<Scalar = f32>> AddAssign<f32> for Size2<T>

source§

fn add_assign(&mut self, rhs: f32)

Performs the += operation. Read more
source§

impl<T: Unit<Scalar = f64>> AddAssign<f64> for Size2<T>

source§

fn add_assign(&mut self, rhs: f64)

Performs the += operation. Read more
source§

impl<T: Unit<Scalar = i16>> AddAssign<i16> for Size2<T>

source§

fn add_assign(&mut self, rhs: i16)

Performs the += operation. Read more
source§

impl<T: Unit<Scalar = i32>> AddAssign<i32> for Size2<T>

source§

fn add_assign(&mut self, rhs: i32)

Performs the += operation. Read more
source§

impl<T: Unit<Scalar = i64>> AddAssign<i64> for Size2<T>

source§

fn add_assign(&mut self, rhs: i64)

Performs the += operation. Read more
source§

impl<T: Unit<Scalar = u16>> AddAssign<u16> for Size2<T>

source§

fn add_assign(&mut self, rhs: u16)

Performs the += operation. Read more
source§

impl<T: Unit<Scalar = u32>> AddAssign<u32> for Size2<T>

source§

fn add_assign(&mut self, rhs: u32)

Performs the += operation. Read more
source§

impl<T: Unit<Scalar = u64>> AddAssign<u64> for Size2<T>

source§

fn add_assign(&mut self, rhs: u64)

Performs the += operation. Read more
source§

impl<T: Unit> AddAssign for Size2<T>

source§

fn add_assign(&mut self, rhs: Size2<T>)

Performs the += operation. Read more
source§

impl<T: Unit> AsMut<[<T as Unit>::Scalar; 2]> for Size2<T>

source§

fn as_mut(&mut self) -> &mut [T::Scalar; 2]

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl<T: Unit<Scalar = f64>> AsMut<DVec2> for Size2<T>

source§

fn as_mut(&mut self) -> &mut DVec2

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl<T: Unit<Scalar = i16>> AsMut<I16Vec2> for Size2<T>

source§

fn as_mut(&mut self) -> &mut I16Vec2

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl<T: Unit<Scalar = i64>> AsMut<I64Vec2> for Size2<T>

source§

fn as_mut(&mut self) -> &mut I64Vec2

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl<T: Unit<Scalar = i32>> AsMut<IVec2> for Size2<T>

source§

fn as_mut(&mut self) -> &mut IVec2

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl<T: Unit<Scalar = u16>> AsMut<U16Vec2> for Size2<T>

source§

fn as_mut(&mut self) -> &mut U16Vec2

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl<T: Unit<Scalar = u64>> AsMut<U64Vec2> for Size2<T>

source§

fn as_mut(&mut self) -> &mut U64Vec2

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl<T: Unit<Scalar = u32>> AsMut<UVec2> for Size2<T>

source§

fn as_mut(&mut self) -> &mut UVec2

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl<T: Unit<Scalar = f32>> AsMut<Vec2> for Size2<T>

source§

fn as_mut(&mut self) -> &mut Vec2

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl<T: Unit> AsRef<[<T as Unit>::Scalar; 2]> for Size2<T>

source§

fn as_ref(&self) -> &[T::Scalar; 2]

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<T: Unit<Scalar = f64>> AsRef<DVec2> for Size2<T>

source§

fn as_ref(&self) -> &DVec2

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<T: Unit<Scalar = i16>> AsRef<I16Vec2> for Size2<T>

source§

fn as_ref(&self) -> &I16Vec2

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<T: Unit<Scalar = i64>> AsRef<I64Vec2> for Size2<T>

source§

fn as_ref(&self) -> &I64Vec2

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<T: Unit<Scalar = i32>> AsRef<IVec2> for Size2<T>

source§

fn as_ref(&self) -> &IVec2

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<T: Unit<Scalar = u16>> AsRef<U16Vec2> for Size2<T>

source§

fn as_ref(&self) -> &U16Vec2

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<T: Unit<Scalar = u64>> AsRef<U64Vec2> for Size2<T>

source§

fn as_ref(&self) -> &U64Vec2

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<T: Unit<Scalar = u32>> AsRef<UVec2> for Size2<T>

source§

fn as_ref(&self) -> &UVec2

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<T: Unit<Scalar = f32>> AsRef<Vec2> for Size2<T>

source§

fn as_ref(&self) -> &Vec2

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<T: Unit<Scalar = f64>> Borrow<DVec2> for Size2<T>

source§

fn borrow(&self) -> &DVec2

Immutably borrows from an owned value. Read more
source§

impl<T: Unit<Scalar = i16>> Borrow<I16Vec2> for Size2<T>

source§

fn borrow(&self) -> &I16Vec2

Immutably borrows from an owned value. Read more
source§

impl<T: Unit<Scalar = i64>> Borrow<I64Vec2> for Size2<T>

source§

fn borrow(&self) -> &I64Vec2

Immutably borrows from an owned value. Read more
source§

impl<T: Unit<Scalar = i32>> Borrow<IVec2> for Size2<T>

source§

fn borrow(&self) -> &IVec2

Immutably borrows from an owned value. Read more
source§

impl<T: Unit<Scalar = u16>> Borrow<U16Vec2> for Size2<T>

source§

fn borrow(&self) -> &U16Vec2

Immutably borrows from an owned value. Read more
source§

impl<T: Unit<Scalar = u64>> Borrow<U64Vec2> for Size2<T>

source§

fn borrow(&self) -> &U64Vec2

Immutably borrows from an owned value. Read more
source§

impl<T: Unit<Scalar = u32>> Borrow<UVec2> for Size2<T>

source§

fn borrow(&self) -> &UVec2

Immutably borrows from an owned value. Read more
source§

impl<T: Unit<Scalar = f32>> Borrow<Vec2> for Size2<T>

source§

fn borrow(&self) -> &Vec2

Immutably borrows from an owned value. Read more
source§

impl<T: Unit<Scalar = f64>> BorrowMut<DVec2> for Size2<T>

source§

fn borrow_mut(&mut self) -> &mut DVec2

Mutably borrows from an owned value. Read more
source§

impl<T: Unit<Scalar = i16>> BorrowMut<I16Vec2> for Size2<T>

source§

fn borrow_mut(&mut self) -> &mut I16Vec2

Mutably borrows from an owned value. Read more
source§

impl<T: Unit<Scalar = i64>> BorrowMut<I64Vec2> for Size2<T>

source§

fn borrow_mut(&mut self) -> &mut I64Vec2

Mutably borrows from an owned value. Read more
source§

impl<T: Unit<Scalar = i32>> BorrowMut<IVec2> for Size2<T>

source§

fn borrow_mut(&mut self) -> &mut IVec2

Mutably borrows from an owned value. Read more
source§

impl<T: Unit<Scalar = u16>> BorrowMut<U16Vec2> for Size2<T>

source§

fn borrow_mut(&mut self) -> &mut U16Vec2

Mutably borrows from an owned value. Read more
source§

impl<T: Unit<Scalar = u64>> BorrowMut<U64Vec2> for Size2<T>

source§

fn borrow_mut(&mut self) -> &mut U64Vec2

Mutably borrows from an owned value. Read more
source§

impl<T: Unit<Scalar = u32>> BorrowMut<UVec2> for Size2<T>

source§

fn borrow_mut(&mut self) -> &mut UVec2

Mutably borrows from an owned value. Read more
source§

impl<T: Unit<Scalar = f32>> BorrowMut<Vec2> for Size2<T>

source§

fn borrow_mut(&mut self) -> &mut Vec2

Mutably borrows from an owned value. Read more
source§

impl<T: Unit> Clone for Size2<T>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: Unit> Debug for Size2<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T: Unit> Default for Size2<T>

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<T: Unit> Div<&Size2<T>> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Size2<T>) -> Size2<T>

Performs the / operation. Read more
source§

impl<T: Unit> Div<&Size2<T>> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &Size2<T>) -> Size2<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = f32>> Div<&f32> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &f32) -> Size2<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = f32>> Div<&f32> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &f32) -> Size2<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = f64>> Div<&f64> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &f64) -> Size2<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = f64>> Div<&f64> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &f64) -> Size2<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = i16>> Div<&i16> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &i16) -> Size2<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = i16>> Div<&i16> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &i16) -> Size2<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = i32>> Div<&i32> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &i32) -> Size2<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = i32>> Div<&i32> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &i32) -> Size2<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = i64>> Div<&i64> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &i64) -> Size2<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = i64>> Div<&i64> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &i64) -> Size2<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = u16>> Div<&u16> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &u16) -> Size2<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = u16>> Div<&u16> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &u16) -> Size2<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = u32>> Div<&u32> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &u32) -> Size2<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = u32>> Div<&u32> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &u32) -> Size2<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = u64>> Div<&u64> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &u64) -> Size2<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = u64>> Div<&u64> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &u64) -> Size2<T>

Performs the / operation. Read more
source§

impl<T: Unit> Div<Size2<T>> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: Size2<T>) -> Size2<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = f32>> Div<f32> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: f32) -> Size2<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = f32>> Div<f32> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: f32) -> Size2<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = f64>> Div<f64> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: f64) -> Size2<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = f64>> Div<f64> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: f64) -> Size2<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = i16>> Div<i16> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: i16) -> Size2<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = i16>> Div<i16> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: i16) -> Size2<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = i32>> Div<i32> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: i32) -> Size2<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = i32>> Div<i32> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: i32) -> Size2<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = i64>> Div<i64> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: i64) -> Size2<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = i64>> Div<i64> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: i64) -> Size2<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = u16>> Div<u16> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: u16) -> Size2<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = u16>> Div<u16> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: u16) -> Size2<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = u32>> Div<u32> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: u32) -> Size2<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = u32>> Div<u32> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: u32) -> Size2<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = u64>> Div<u64> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: u64) -> Size2<T>

Performs the / operation. Read more
source§

impl<T: Unit<Scalar = u64>> Div<u64> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: u64) -> Size2<T>

Performs the / operation. Read more
source§

impl<T: Unit> Div for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the / operator.
source§

fn div(self, rhs: Size2<T>) -> Size2<T>

Performs the / operation. Read more
source§

impl<T: Unit> DivAssign<&Size2<T>> for Size2<T>

source§

fn div_assign(&mut self, rhs: &Size2<T>)

Performs the /= operation. Read more
source§

impl<T: Unit<Scalar = f32>> DivAssign<&f32> for Size2<T>

source§

fn div_assign(&mut self, rhs: &f32)

Performs the /= operation. Read more
source§

impl<T: Unit<Scalar = f64>> DivAssign<&f64> for Size2<T>

source§

fn div_assign(&mut self, rhs: &f64)

Performs the /= operation. Read more
source§

impl<T: Unit<Scalar = i16>> DivAssign<&i16> for Size2<T>

source§

fn div_assign(&mut self, rhs: &i16)

Performs the /= operation. Read more
source§

impl<T: Unit<Scalar = i32>> DivAssign<&i32> for Size2<T>

source§

fn div_assign(&mut self, rhs: &i32)

Performs the /= operation. Read more
source§

impl<T: Unit<Scalar = i64>> DivAssign<&i64> for Size2<T>

source§

fn div_assign(&mut self, rhs: &i64)

Performs the /= operation. Read more
source§

impl<T: Unit<Scalar = u16>> DivAssign<&u16> for Size2<T>

source§

fn div_assign(&mut self, rhs: &u16)

Performs the /= operation. Read more
source§

impl<T: Unit<Scalar = u32>> DivAssign<&u32> for Size2<T>

source§

fn div_assign(&mut self, rhs: &u32)

Performs the /= operation. Read more
source§

impl<T: Unit<Scalar = u64>> DivAssign<&u64> for Size2<T>

source§

fn div_assign(&mut self, rhs: &u64)

Performs the /= operation. Read more
source§

impl<T: Unit<Scalar = f32>> DivAssign<f32> for Size2<T>

source§

fn div_assign(&mut self, rhs: f32)

Performs the /= operation. Read more
source§

impl<T: Unit<Scalar = f64>> DivAssign<f64> for Size2<T>

source§

fn div_assign(&mut self, rhs: f64)

Performs the /= operation. Read more
source§

impl<T: Unit<Scalar = i16>> DivAssign<i16> for Size2<T>

source§

fn div_assign(&mut self, rhs: i16)

Performs the /= operation. Read more
source§

impl<T: Unit<Scalar = i32>> DivAssign<i32> for Size2<T>

source§

fn div_assign(&mut self, rhs: i32)

Performs the /= operation. Read more
source§

impl<T: Unit<Scalar = i64>> DivAssign<i64> for Size2<T>

source§

fn div_assign(&mut self, rhs: i64)

Performs the /= operation. Read more
source§

impl<T: Unit<Scalar = u16>> DivAssign<u16> for Size2<T>

source§

fn div_assign(&mut self, rhs: u16)

Performs the /= operation. Read more
source§

impl<T: Unit<Scalar = u32>> DivAssign<u32> for Size2<T>

source§

fn div_assign(&mut self, rhs: u32)

Performs the /= operation. Read more
source§

impl<T: Unit<Scalar = u64>> DivAssign<u64> for Size2<T>

source§

fn div_assign(&mut self, rhs: u64)

Performs the /= operation. Read more
source§

impl<T: Unit> DivAssign for Size2<T>

source§

fn div_assign(&mut self, rhs: Size2<T>)

Performs the /= operation. Read more
source§

impl<T: Unit> From<[<T as Unit>::Scalar; 2]> for Size2<T>

source§

fn from(value: [T::Scalar; 2]) -> Self

Converts to this type from the input type.
source§

impl<T: Unit> From<(<T as Unit>::Scalar, <T as Unit>::Scalar)> for Size2<T>

source§

fn from((x, y): (T::Scalar, T::Scalar)) -> Self

Converts to this type from the input type.
source§

impl<T: Unit<Scalar = f64>> From<DVec2> for Size2<T>

source§

fn from(value: DVec2) -> Self

Converts to this type from the input type.
source§

impl<T: Unit<Scalar = i16>> From<I16Vec2> for Size2<T>

source§

fn from(value: I16Vec2) -> Self

Converts to this type from the input type.
source§

impl<T: Unit<Scalar = i64>> From<I64Vec2> for Size2<T>

source§

fn from(value: I64Vec2) -> Self

Converts to this type from the input type.
source§

impl<T: Unit<Scalar = i32>> From<IVec2> for Size2<T>

source§

fn from(value: IVec2) -> Self

Converts to this type from the input type.
source§

impl<T: Unit> From<Size2<T>> for [T::Scalar; 2]

source§

fn from(value: Size2<T>) -> [T::Scalar; 2]

Converts to this type from the input type.
source§

impl<T: Unit> From<Size2<T>> for (T::Scalar, T::Scalar)

source§

fn from(value: Size2<T>) -> Self

Converts to this type from the input type.
source§

impl<T: Unit<Scalar = f64>> From<Size2<T>> for DVec2

source§

fn from(value: Size2<T>) -> Self

Converts to this type from the input type.
source§

impl<T: Unit<Scalar = i16>> From<Size2<T>> for I16Vec2

source§

fn from(value: Size2<T>) -> Self

Converts to this type from the input type.
source§

impl<T: Unit<Scalar = i64>> From<Size2<T>> for I64Vec2

source§

fn from(value: Size2<T>) -> Self

Converts to this type from the input type.
source§

impl<T: Unit<Scalar = i32>> From<Size2<T>> for IVec2

source§

fn from(value: Size2<T>) -> Self

Converts to this type from the input type.
source§

impl<T: Unit<Scalar = u16>> From<Size2<T>> for U16Vec2

source§

fn from(value: Size2<T>) -> Self

Converts to this type from the input type.
source§

impl<T: Unit<Scalar = u64>> From<Size2<T>> for U64Vec2

source§

fn from(value: Size2<T>) -> Self

Converts to this type from the input type.
source§

impl<T: Unit<Scalar = u32>> From<Size2<T>> for UVec2

source§

fn from(value: Size2<T>) -> Self

Converts to this type from the input type.
source§

impl<T: Unit<Scalar = f32>> From<Size2<T>> for Vec2

source§

fn from(value: Size2<T>) -> Self

Converts to this type from the input type.
source§

impl<T: Unit> From<Size2<T>> for Vector2<T>

source§

fn from(point: Size2<T>) -> Self

Converts to this type from the input type.
source§

impl<T: Unit<Scalar = u16>> From<U16Vec2> for Size2<T>

source§

fn from(value: U16Vec2) -> Self

Converts to this type from the input type.
source§

impl<T: Unit<Scalar = u64>> From<U64Vec2> for Size2<T>

source§

fn from(value: U64Vec2) -> Self

Converts to this type from the input type.
source§

impl<T: Unit<Scalar = u32>> From<UVec2> for Size2<T>

source§

fn from(value: UVec2) -> Self

Converts to this type from the input type.
source§

impl<T: Unit<Scalar = f32>> From<Vec2> for Size2<T>

source§

fn from(value: Vec2) -> Self

Converts to this type from the input type.
source§

impl<T: Unit> From<Vector2<T>> for Size2<T>

source§

fn from(vec: Vector2<T>) -> Self

Converts to this type from the input type.
source§

impl<T: IntUnit> Hash for Size2<T>

source§

fn hash<H>(&self, state: &mut H)
where H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<T: Unit> Index<usize> for Size2<T>

source§

type Output = <T as Unit>::Scalar

The returned type after indexing.
source§

fn index(&self, index: usize) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
source§

impl<T: Unit> IndexMut<usize> for Size2<T>

source§

fn index_mut(&mut self, index: usize) -> &mut Self::Output

Performs the mutable indexing (container[index]) operation. Read more
source§

impl<T: Unit> IntoIterator for Size2<T>

source§

type Item = <T as Unit>::Scalar

The type of the elements being iterated over.
source§

type IntoIter = <[<T as Unit>::Scalar; 2] as IntoIterator>::IntoIter

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<T: Unit> Mul<&Size2<T>> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Size2<T>) -> Size2<T>

Performs the * operation. Read more
source§

impl<T: Unit> Mul<&Size2<T>> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &Size2<T>) -> Size2<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = f32>> Mul<&f32> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &f32) -> Size2<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = f32>> Mul<&f32> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &f32) -> Size2<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = f64>> Mul<&f64> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &f64) -> Size2<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = f64>> Mul<&f64> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &f64) -> Size2<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = i16>> Mul<&i16> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &i16) -> Size2<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = i16>> Mul<&i16> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &i16) -> Size2<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = i32>> Mul<&i32> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &i32) -> Size2<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = i32>> Mul<&i32> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &i32) -> Size2<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = i64>> Mul<&i64> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &i64) -> Size2<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = i64>> Mul<&i64> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &i64) -> Size2<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = u16>> Mul<&u16> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u16) -> Size2<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = u16>> Mul<&u16> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u16) -> Size2<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = u32>> Mul<&u32> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u32) -> Size2<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = u32>> Mul<&u32> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u32) -> Size2<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = u64>> Mul<&u64> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u64) -> Size2<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = u64>> Mul<&u64> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &u64) -> Size2<T>

Performs the * operation. Read more
source§

impl<T: Unit> Mul<Size2<T>> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Size2<T>) -> Size2<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = f32>> Mul<f32> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: f32) -> Size2<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = f32>> Mul<f32> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: f32) -> Size2<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = f64>> Mul<f64> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: f64) -> Size2<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = f64>> Mul<f64> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: f64) -> Size2<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = i16>> Mul<i16> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i16) -> Size2<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = i16>> Mul<i16> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i16) -> Size2<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = i32>> Mul<i32> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i32) -> Size2<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = i32>> Mul<i32> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i32) -> Size2<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = i64>> Mul<i64> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i64) -> Size2<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = i64>> Mul<i64> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: i64) -> Size2<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = u16>> Mul<u16> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u16) -> Size2<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = u16>> Mul<u16> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u16) -> Size2<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = u32>> Mul<u32> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u32) -> Size2<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = u32>> Mul<u32> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u32) -> Size2<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = u64>> Mul<u64> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u64) -> Size2<T>

Performs the * operation. Read more
source§

impl<T: Unit<Scalar = u64>> Mul<u64> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: u64) -> Size2<T>

Performs the * operation. Read more
source§

impl<T: Unit> Mul for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Size2<T>) -> Size2<T>

Performs the * operation. Read more
source§

impl<T: Unit> MulAssign<&Size2<T>> for Size2<T>

source§

fn mul_assign(&mut self, rhs: &Size2<T>)

Performs the *= operation. Read more
source§

impl<T: Unit<Scalar = f32>> MulAssign<&f32> for Size2<T>

source§

fn mul_assign(&mut self, rhs: &f32)

Performs the *= operation. Read more
source§

impl<T: Unit<Scalar = f64>> MulAssign<&f64> for Size2<T>

source§

fn mul_assign(&mut self, rhs: &f64)

Performs the *= operation. Read more
source§

impl<T: Unit<Scalar = i16>> MulAssign<&i16> for Size2<T>

source§

fn mul_assign(&mut self, rhs: &i16)

Performs the *= operation. Read more
source§

impl<T: Unit<Scalar = i32>> MulAssign<&i32> for Size2<T>

source§

fn mul_assign(&mut self, rhs: &i32)

Performs the *= operation. Read more
source§

impl<T: Unit<Scalar = i64>> MulAssign<&i64> for Size2<T>

source§

fn mul_assign(&mut self, rhs: &i64)

Performs the *= operation. Read more
source§

impl<T: Unit<Scalar = u16>> MulAssign<&u16> for Size2<T>

source§

fn mul_assign(&mut self, rhs: &u16)

Performs the *= operation. Read more
source§

impl<T: Unit<Scalar = u32>> MulAssign<&u32> for Size2<T>

source§

fn mul_assign(&mut self, rhs: &u32)

Performs the *= operation. Read more
source§

impl<T: Unit<Scalar = u64>> MulAssign<&u64> for Size2<T>

source§

fn mul_assign(&mut self, rhs: &u64)

Performs the *= operation. Read more
source§

impl<T: Unit<Scalar = f32>> MulAssign<f32> for Size2<T>

source§

fn mul_assign(&mut self, rhs: f32)

Performs the *= operation. Read more
source§

impl<T: Unit<Scalar = f64>> MulAssign<f64> for Size2<T>

source§

fn mul_assign(&mut self, rhs: f64)

Performs the *= operation. Read more
source§

impl<T: Unit<Scalar = i16>> MulAssign<i16> for Size2<T>

source§

fn mul_assign(&mut self, rhs: i16)

Performs the *= operation. Read more
source§

impl<T: Unit<Scalar = i32>> MulAssign<i32> for Size2<T>

source§

fn mul_assign(&mut self, rhs: i32)

Performs the *= operation. Read more
source§

impl<T: Unit<Scalar = i64>> MulAssign<i64> for Size2<T>

source§

fn mul_assign(&mut self, rhs: i64)

Performs the *= operation. Read more
source§

impl<T: Unit<Scalar = u16>> MulAssign<u16> for Size2<T>

source§

fn mul_assign(&mut self, rhs: u16)

Performs the *= operation. Read more
source§

impl<T: Unit<Scalar = u32>> MulAssign<u32> for Size2<T>

source§

fn mul_assign(&mut self, rhs: u32)

Performs the *= operation. Read more
source§

impl<T: Unit<Scalar = u64>> MulAssign<u64> for Size2<T>

source§

fn mul_assign(&mut self, rhs: u64)

Performs the *= operation. Read more
source§

impl<T: Unit> MulAssign for Size2<T>

source§

fn mul_assign(&mut self, rhs: Size2<T>)

Performs the *= operation. Read more
source§

impl<T: Unit> PartialEq<(<T as Unit>::Scalar, <T as Unit>::Scalar)> for Size2<T>

source§

fn eq(&self, other: &(T::Scalar, T::Scalar)) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<T: Unit> PartialEq for Size2<T>

source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<T: FloatUnit> RelativeEq for Size2<T>

source§

fn default_max_relative() -> Self::Epsilon

The default relative tolerance for testing values that are far-apart. Read more
source§

fn relative_eq( &self, other: &Self, epsilon: Self::Epsilon, max_relative: Self::Epsilon, ) -> bool

A test for equality that uses a relative comparison if the values are far apart.
source§

fn relative_ne( &self, other: &Self, epsilon: Self::Epsilon, max_relative: Self::Epsilon, ) -> bool

The inverse of RelativeEq::relative_eq.
source§

impl<T: Unit> Rem<&Size2<T>> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &Size2<T>) -> Size2<T>

Performs the % operation. Read more
source§

impl<T: Unit> Rem<&Size2<T>> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &Size2<T>) -> Size2<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = f32>> Rem<&f32> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &f32) -> Size2<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = f32>> Rem<&f32> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &f32) -> Size2<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = f64>> Rem<&f64> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &f64) -> Size2<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = f64>> Rem<&f64> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &f64) -> Size2<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = i16>> Rem<&i16> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &i16) -> Size2<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = i16>> Rem<&i16> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &i16) -> Size2<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = i32>> Rem<&i32> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &i32) -> Size2<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = i32>> Rem<&i32> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &i32) -> Size2<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = i64>> Rem<&i64> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &i64) -> Size2<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = i64>> Rem<&i64> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &i64) -> Size2<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = u16>> Rem<&u16> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &u16) -> Size2<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = u16>> Rem<&u16> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &u16) -> Size2<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = u32>> Rem<&u32> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &u32) -> Size2<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = u32>> Rem<&u32> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &u32) -> Size2<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = u64>> Rem<&u64> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &u64) -> Size2<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = u64>> Rem<&u64> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: &u64) -> Size2<T>

Performs the % operation. Read more
source§

impl<T: Unit> Rem<Size2<T>> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: Size2<T>) -> Size2<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = f32>> Rem<f32> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: f32) -> Size2<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = f32>> Rem<f32> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: f32) -> Size2<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = f64>> Rem<f64> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: f64) -> Size2<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = f64>> Rem<f64> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: f64) -> Size2<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = i16>> Rem<i16> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: i16) -> Size2<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = i16>> Rem<i16> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: i16) -> Size2<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = i32>> Rem<i32> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: i32) -> Size2<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = i32>> Rem<i32> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: i32) -> Size2<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = i64>> Rem<i64> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: i64) -> Size2<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = i64>> Rem<i64> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: i64) -> Size2<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = u16>> Rem<u16> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: u16) -> Size2<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = u16>> Rem<u16> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: u16) -> Size2<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = u32>> Rem<u32> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: u32) -> Size2<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = u32>> Rem<u32> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: u32) -> Size2<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = u64>> Rem<u64> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: u64) -> Size2<T>

Performs the % operation. Read more
source§

impl<T: Unit<Scalar = u64>> Rem<u64> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: u64) -> Size2<T>

Performs the % operation. Read more
source§

impl<T: Unit> Rem for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the % operator.
source§

fn rem(self, rhs: Size2<T>) -> Size2<T>

Performs the % operation. Read more
source§

impl<T: Unit> RemAssign<&Size2<T>> for Size2<T>

source§

fn rem_assign(&mut self, rhs: &Size2<T>)

Performs the %= operation. Read more
source§

impl<T: Unit<Scalar = f32>> RemAssign<&f32> for Size2<T>

source§

fn rem_assign(&mut self, rhs: &f32)

Performs the %= operation. Read more
source§

impl<T: Unit<Scalar = f64>> RemAssign<&f64> for Size2<T>

source§

fn rem_assign(&mut self, rhs: &f64)

Performs the %= operation. Read more
source§

impl<T: Unit<Scalar = i16>> RemAssign<&i16> for Size2<T>

source§

fn rem_assign(&mut self, rhs: &i16)

Performs the %= operation. Read more
source§

impl<T: Unit<Scalar = i32>> RemAssign<&i32> for Size2<T>

source§

fn rem_assign(&mut self, rhs: &i32)

Performs the %= operation. Read more
source§

impl<T: Unit<Scalar = i64>> RemAssign<&i64> for Size2<T>

source§

fn rem_assign(&mut self, rhs: &i64)

Performs the %= operation. Read more
source§

impl<T: Unit<Scalar = u16>> RemAssign<&u16> for Size2<T>

source§

fn rem_assign(&mut self, rhs: &u16)

Performs the %= operation. Read more
source§

impl<T: Unit<Scalar = u32>> RemAssign<&u32> for Size2<T>

source§

fn rem_assign(&mut self, rhs: &u32)

Performs the %= operation. Read more
source§

impl<T: Unit<Scalar = u64>> RemAssign<&u64> for Size2<T>

source§

fn rem_assign(&mut self, rhs: &u64)

Performs the %= operation. Read more
source§

impl<T: Unit<Scalar = f32>> RemAssign<f32> for Size2<T>

source§

fn rem_assign(&mut self, rhs: f32)

Performs the %= operation. Read more
source§

impl<T: Unit<Scalar = f64>> RemAssign<f64> for Size2<T>

source§

fn rem_assign(&mut self, rhs: f64)

Performs the %= operation. Read more
source§

impl<T: Unit<Scalar = i16>> RemAssign<i16> for Size2<T>

source§

fn rem_assign(&mut self, rhs: i16)

Performs the %= operation. Read more
source§

impl<T: Unit<Scalar = i32>> RemAssign<i32> for Size2<T>

source§

fn rem_assign(&mut self, rhs: i32)

Performs the %= operation. Read more
source§

impl<T: Unit<Scalar = i64>> RemAssign<i64> for Size2<T>

source§

fn rem_assign(&mut self, rhs: i64)

Performs the %= operation. Read more
source§

impl<T: Unit<Scalar = u16>> RemAssign<u16> for Size2<T>

source§

fn rem_assign(&mut self, rhs: u16)

Performs the %= operation. Read more
source§

impl<T: Unit<Scalar = u32>> RemAssign<u32> for Size2<T>

source§

fn rem_assign(&mut self, rhs: u32)

Performs the %= operation. Read more
source§

impl<T: Unit<Scalar = u64>> RemAssign<u64> for Size2<T>

source§

fn rem_assign(&mut self, rhs: u64)

Performs the %= operation. Read more
source§

impl<T: Unit> RemAssign for Size2<T>

source§

fn rem_assign(&mut self, rhs: Size2<T>)

Performs the %= operation. Read more
source§

impl<T: Unit> Sub<&Size2<T>> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Size2<T>) -> Size2<T>

Performs the - operation. Read more
source§

impl<T: Unit> Sub<&Size2<T>> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &Size2<T>) -> Size2<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = f32>> Sub<&f32> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &f32) -> Size2<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = f32>> Sub<&f32> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &f32) -> Size2<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = f64>> Sub<&f64> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &f64) -> Size2<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = f64>> Sub<&f64> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &f64) -> Size2<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = i16>> Sub<&i16> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &i16) -> Size2<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = i16>> Sub<&i16> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &i16) -> Size2<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = i32>> Sub<&i32> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &i32) -> Size2<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = i32>> Sub<&i32> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &i32) -> Size2<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = i64>> Sub<&i64> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &i64) -> Size2<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = i64>> Sub<&i64> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &i64) -> Size2<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = u16>> Sub<&u16> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u16) -> Size2<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = u16>> Sub<&u16> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u16) -> Size2<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = u32>> Sub<&u32> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u32) -> Size2<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = u32>> Sub<&u32> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u32) -> Size2<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = u64>> Sub<&u64> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u64) -> Size2<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = u64>> Sub<&u64> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &u64) -> Size2<T>

Performs the - operation. Read more
source§

impl<T: Unit> Sub<Size2<T>> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Size2<T>) -> Size2<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = f32>> Sub<f32> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: f32) -> Size2<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = f32>> Sub<f32> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: f32) -> Size2<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = f64>> Sub<f64> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: f64) -> Size2<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = f64>> Sub<f64> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: f64) -> Size2<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = i16>> Sub<i16> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i16) -> Size2<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = i16>> Sub<i16> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i16) -> Size2<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = i32>> Sub<i32> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i32) -> Size2<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = i32>> Sub<i32> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i32) -> Size2<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = i64>> Sub<i64> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i64) -> Size2<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = i64>> Sub<i64> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: i64) -> Size2<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = u16>> Sub<u16> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u16) -> Size2<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = u16>> Sub<u16> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u16) -> Size2<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = u32>> Sub<u32> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u32) -> Size2<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = u32>> Sub<u32> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u32) -> Size2<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = u64>> Sub<u64> for &Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u64) -> Size2<T>

Performs the - operation. Read more
source§

impl<T: Unit<Scalar = u64>> Sub<u64> for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: u64) -> Size2<T>

Performs the - operation. Read more
source§

impl<T: Unit> Sub for Size2<T>

source§

type Output = Size2<T>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Size2<T>) -> Size2<T>

Performs the - operation. Read more
source§

impl<T: Unit> SubAssign<&Size2<T>> for Size2<T>

source§

fn sub_assign(&mut self, rhs: &Size2<T>)

Performs the -= operation. Read more
source§

impl<T: Unit<Scalar = f32>> SubAssign<&f32> for Size2<T>

source§

fn sub_assign(&mut self, rhs: &f32)

Performs the -= operation. Read more
source§

impl<T: Unit<Scalar = f64>> SubAssign<&f64> for Size2<T>

source§

fn sub_assign(&mut self, rhs: &f64)

Performs the -= operation. Read more
source§

impl<T: Unit<Scalar = i16>> SubAssign<&i16> for Size2<T>

source§

fn sub_assign(&mut self, rhs: &i16)

Performs the -= operation. Read more
source§

impl<T: Unit<Scalar = i32>> SubAssign<&i32> for Size2<T>

source§

fn sub_assign(&mut self, rhs: &i32)

Performs the -= operation. Read more
source§

impl<T: Unit<Scalar = i64>> SubAssign<&i64> for Size2<T>

source§

fn sub_assign(&mut self, rhs: &i64)

Performs the -= operation. Read more
source§

impl<T: Unit<Scalar = u16>> SubAssign<&u16> for Size2<T>

source§

fn sub_assign(&mut self, rhs: &u16)

Performs the -= operation. Read more
source§

impl<T: Unit<Scalar = u32>> SubAssign<&u32> for Size2<T>

source§

fn sub_assign(&mut self, rhs: &u32)

Performs the -= operation. Read more
source§

impl<T: Unit<Scalar = u64>> SubAssign<&u64> for Size2<T>

source§

fn sub_assign(&mut self, rhs: &u64)

Performs the -= operation. Read more
source§

impl<T: Unit<Scalar = f32>> SubAssign<f32> for Size2<T>

source§

fn sub_assign(&mut self, rhs: f32)

Performs the -= operation. Read more
source§

impl<T: Unit<Scalar = f64>> SubAssign<f64> for Size2<T>

source§

fn sub_assign(&mut self, rhs: f64)

Performs the -= operation. Read more
source§

impl<T: Unit<Scalar = i16>> SubAssign<i16> for Size2<T>

source§

fn sub_assign(&mut self, rhs: i16)

Performs the -= operation. Read more
source§

impl<T: Unit<Scalar = i32>> SubAssign<i32> for Size2<T>

source§

fn sub_assign(&mut self, rhs: i32)

Performs the -= operation. Read more
source§

impl<T: Unit<Scalar = i64>> SubAssign<i64> for Size2<T>

source§

fn sub_assign(&mut self, rhs: i64)

Performs the -= operation. Read more
source§

impl<T: Unit<Scalar = u16>> SubAssign<u16> for Size2<T>

source§

fn sub_assign(&mut self, rhs: u16)

Performs the -= operation. Read more
source§

impl<T: Unit<Scalar = u32>> SubAssign<u32> for Size2<T>

source§

fn sub_assign(&mut self, rhs: u32)

Performs the -= operation. Read more
source§

impl<T: Unit<Scalar = u64>> SubAssign<u64> for Size2<T>

source§

fn sub_assign(&mut self, rhs: u64)

Performs the -= operation. Read more
source§

impl<T: Unit> SubAssign for Size2<T>

source§

fn sub_assign(&mut self, rhs: Size2<T>)

Performs the -= operation. Read more
source§

impl<T: Unit> Swizzle<T> for Size2<T>

source§

fn swizzle2<const X: usize, const Y: usize>(&self) -> Vector2<T>

Select two components from this vector and return a 2D vector made from those components.
source§

fn swizzle3<const X: usize, const Y: usize, const Z: usize>(&self) -> Vector3<T>

Select three components from this vector and return a 3D vector made from those components.
source§

fn swizzle4<const X: usize, const Y: usize, const Z: usize, const W: usize>( &self, ) -> Vector4<T>

Select four components from this vector and return a 4D vector made from those components.
source§

impl<T: Unit> Transparent for Size2<T>

source§

type Wrapped = <<T as Unit>::Scalar as Scalar>::Vec2

The inner type that shares a compatible representation with Self.
source§

fn wrap(x: Self::Wrapped) -> Self

Wrap the inner type by copy. Read more
source§

fn peel(x: Self) -> Self::Wrapped

Unwrap the inner type by copy. Read more
source§

fn peel_ref(x: &Self) -> &Self::Wrapped

Convert a reference to the inner type. Read more
source§

fn peel_mut(x: &mut Self) -> &mut Self::Wrapped

Convert a mutable reference to the inner type. Read more
source§

impl<T: FloatUnit> UlpsEq for Size2<T>

source§

fn default_max_ulps() -> u32

The default ULPs to tolerate when testing values that are far-apart. Read more
source§

fn ulps_eq(&self, other: &Self, epsilon: Self::Epsilon, max_ulps: u32) -> bool

A test for equality that uses units in the last place (ULP) if the values are far apart.
source§

fn ulps_ne(&self, other: &Self, epsilon: Self::Epsilon, max_ulps: u32) -> bool

The inverse of UlpsEq::ulps_eq.
source§

impl<T: Unit> Vec2Swizzles for Size2<T>

source§

type Vec3 = Size3<T>

source§

type Vec4 = Vector4<T>

source§

fn xx(self) -> Size2<T>

source§

fn xy(self) -> Size2<T>

source§

fn yy(self) -> Size2<T>

source§

fn yx(self) -> Size2<T>

source§

fn xxx(self) -> Size3<T>

source§

fn xxy(self) -> Size3<T>

source§

fn xyx(self) -> Size3<T>

source§

fn xyy(self) -> Size3<T>

source§

fn yxx(self) -> Size3<T>

source§

fn yxy(self) -> Size3<T>

source§

fn yyx(self) -> Size3<T>

source§

fn yyy(self) -> Size3<T>

source§

fn xxxx(self) -> Vector4<T>

source§

fn xxxy(self) -> Vector4<T>

source§

fn xxyx(self) -> Vector4<T>

source§

fn xxyy(self) -> Vector4<T>

source§

fn xyxx(self) -> Vector4<T>

source§

fn xyxy(self) -> Vector4<T>

source§

fn xyyx(self) -> Vector4<T>

source§

fn xyyy(self) -> Vector4<T>

source§

fn yxxx(self) -> Vector4<T>

source§

fn yxxy(self) -> Vector4<T>

source§

fn yxyx(self) -> Vector4<T>

source§

fn yxyy(self) -> Vector4<T>

source§

fn yyxx(self) -> Vector4<T>

source§

fn yyxy(self) -> Vector4<T>

source§

fn yyyx(self) -> Vector4<T>

source§

fn yyyy(self) -> Vector4<T>

source§

impl<T: Unit> Zeroable for Size2<T>

SAFETY: All members are Pod, and we are #[repr(C)].

source§

fn zeroed() -> Self

source§

impl<T: Unit> Copy for Size2<T>

source§

impl<T: Unit<Scalar: Eq>> Eq for Size2<T>

source§

impl<T: Unit> Pod for Size2<T>

SAFETY: All members are Pod, and we are #[repr(C)].

Auto Trait Implementations§

§

impl<U> Freeze for Size2<U>
where <U as Unit>::Scalar: Freeze,

§

impl<U> RefUnwindSafe for Size2<U>
where <U as Unit>::Scalar: RefUnwindSafe,

§

impl<U> Send for Size2<U>

§

impl<U> Sync for Size2<U>

§

impl<U> Unpin for Size2<U>
where <U as Unit>::Scalar: Unpin,

§

impl<U> UnwindSafe for Size2<U>
where <U as Unit>::Scalar: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CheckedBitPattern for T
where T: AnyBitPattern,

source§

type Bits = T

Self must have the same layout as the specified Bits except for the possible invalid bit patterns being checked during is_valid_bit_pattern.
source§

fn is_valid_bit_pattern(_bits: &T) -> bool

If this function returns true, then it must be valid to reinterpret bits as &Self.
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> AnyBitPattern for T
where T: Pod,

source§

impl<T> NoUninit for T
where T: Pod,

source§

impl<T, Rhs> NumAssignOps<Rhs> for T
where T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,

source§

impl<T, Rhs, Output> NumOps<Rhs, Output> for T
where T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,

source§

impl<T> PodValue for T
where T: Copy + Debug + Default + PartialEq + Pod + Send + Sync + Serializable + 'static,

source§

impl<T, Base> RefNum<Base> for T
where T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>,

source§

impl<T> Serializable for T

source§

impl<T> WasmComponentType for T