Struct gee::Size [−][src]
pub struct Size<T = f32> {
pub width: T,
pub height: T,
}
Fields
width: T
height: T
Implementations
Downscales the size to fit within rhs
while preserving aspect ratio.
Scales the size to fit within rhs
while preserving aspect ratio.
The largest size that fits within rhs
will be calculated.
Trait Implementations
Performs the +=
operation. Read more
Performs the +=
operation. Read more
Performs the /=
operation. Read more
Performs the /=
operation. Read more
Performs the *=
operation. Read more
Performs the *=
operation. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Performs the %=
operation. Read more
Performs the %=
operation. Read more
Performs the -=
operation. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for Size<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Size<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more