[−][src]Struct kas::geom::Size
A (w, h)
size.
Implementations
impl Size
[src]
pub const ZERO: Size
[src]
A size of (0, 0)
pub const fn uniform(v: u32) -> Self
[src]
Uniform size in each dimension
pub fn min(self, other: Self) -> Self
[src]
Return the minimum, componentwise
pub fn max(self, other: Self) -> Self
[src]
Return the maximum, componentwise
pub fn transpose(self) -> Self
[src]
Return the transpose (swap width and height)
Trait Implementations
impl Add<Size> for Coord
[src]
type Output = Self
The resulting type after applying the +
operator.
pub fn add(self, other: Size) -> Self
[src]
impl Add<Size> for Size
[src]
type Output = Self
The resulting type after applying the +
operator.
pub fn add(self, other: Self) -> Self
[src]
impl AddAssign<Size> for Coord
[src]
pub fn add_assign(&mut self, rhs: Size)
[src]
impl AddAssign<Size> for Size
[src]
pub fn add_assign(&mut self, rhs: Self)
[src]
impl Clone for Size
[src]
impl Copy for Size
[src]
impl Debug for Size
[src]
impl Default for Size
[src]
impl Div<u32> for Size
[src]
type Output = Self
The resulting type after applying the /
operator.
pub fn div(self, x: u32) -> Self
[src]
impl Eq for Size
[src]
impl From<(u32, u32)> for Size
[src]
impl From<Coord> for Size
[src]
impl From<DVec2> for Size
[src]
impl<X: Pixel> From<PhysicalSize<X>> for Size
[src]
pub fn from(size: PhysicalSize<X>) -> Size
[src]
impl From<Size> for Vec2
[src]
impl From<Size> for DVec2
[src]
impl From<Size> for Coord
[src]
impl<X: Pixel> From<Size> for PhysicalSize<X>
[src]
pub fn from(size: Size) -> PhysicalSize<X>
[src]
impl From<Size> for Size
[src]
impl From<Size> for Vec2
[src]
impl From<Vec2> for Size
[src]
impl Mul<f32> for Size
[src]
type Output = Self
The resulting type after applying the *
operator.
pub fn mul(self, x: f32) -> Self
[src]
impl Mul<u32> for Size
[src]
type Output = Self
The resulting type after applying the *
operator.
pub fn mul(self, x: u32) -> Self
[src]
impl PartialEq<Size> for Size
[src]
impl StructuralEq for Size
[src]
impl StructuralPartialEq for Size
[src]
impl Sub<Size> for Size
[src]
type Output = Self
The resulting type after applying the -
operator.
pub fn sub(self, other: Self) -> Self
[src]
impl SubAssign<Size> for Size
[src]
pub fn sub_assign(&mut self, rhs: Self)
[src]
Auto Trait Implementations
impl RefUnwindSafe for Size
impl Send for Size
impl Sync for Size
impl Unpin for Size
impl UnwindSafe for Size
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,