[][src]Struct doryen_extra::FSize

pub struct FSize {
    pub width: f32,
    pub height: f32,
}

A struct representing a floating-point Size determined by its width and height values.

Fields

width: f32

The width value the Size is currently representing.

height: f32

The height value the Size is currently representing.

Implementations

impl FSize[src]

pub const ZERO: Self[src]

A constant representing a Size where both width and height are 0.

pub const fn new(width: f32, height: f32) -> Self[src]

Returns a Size with the given width and height values.

impl FSize[src]

pub fn area(self) -> f32[src]

Returns the area represented by this size

Trait Implementations

impl Add<(f32, f32)> for FSize[src]

type Output = Self

The resulting type after applying the + operator.

impl Add<FSize> for FSize[src]

type Output = Self

The resulting type after applying the + operator.

impl Add<FSize> for FPosition[src]

type Output = FRectangle

The resulting type after applying the + operator.

impl Add<f32> for FSize[src]

type Output = Self

The resulting type after applying the + operator.

impl AddAssign<(f32, f32)> for FSize[src]

impl AddAssign<f32> for FSize[src]

impl Clone for FSize[src]

impl Copy for FSize[src]

impl Debug for FSize[src]

impl Default for FSize[src]

impl Display for FSize[src]

impl Div<f32> for FSize[src]

type Output = Self

The resulting type after applying the / operator.

impl DivAssign<f32> for FSize[src]

impl From<(f32, f32)> for FSize[src]

impl From<FSize> for (f32, f32)[src]

impl Mul<f32> for FSize[src]

type Output = Self

The resulting type after applying the * operator.

impl MulAssign<f32> for FSize[src]

impl Neg for FSize[src]

type Output = Self

The resulting type after applying the - operator.

impl PartialEq<FSize> for FSize[src]

impl Rem<f32> for FSize[src]

type Output = Self

The resulting type after applying the % operator.

impl RemAssign<f32> for FSize[src]

impl StructuralPartialEq for FSize[src]

impl Sub<(f32, f32)> for FSize[src]

type Output = Self

The resulting type after applying the - operator.

impl Sub<FSize> for FSize[src]

type Output = Self

The resulting type after applying the - operator.

impl Sub<f32> for FSize[src]

type Output = Self

The resulting type after applying the - operator.

impl SubAssign<(f32, f32)> for FSize[src]

impl SubAssign<f32> for FSize[src]

Auto Trait Implementations

impl RefUnwindSafe for FSize

impl Send for FSize

impl Sync for FSize

impl Unpin for FSize

impl UnwindSafe for FSize

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, Rhs> NumAssignOps<Rhs> for T where
    T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>, 
[src]

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>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,