pub struct Size {
pub width: f32,
pub height: f32,
}Expand description
Represents a generic size.
Fields§
§width: f32The width in pixels.
height: f32The height in pixels.
Implementations§
Trait Implementations§
Source§impl AddAssign for Size
impl AddAssign for Size
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moreSource§impl DivAssign<f32> for Size
impl DivAssign<f32> for Size
Source§fn div_assign(&mut self, other: f32)
fn div_assign(&mut self, other: f32)
Performs the
/= operation. Read moreSource§impl DivAssign<f64> for Size
impl DivAssign<f64> for Size
Source§fn div_assign(&mut self, other: f64)
fn div_assign(&mut self, other: f64)
Performs the
/= operation. Read moreSource§impl DivAssign<i128> for Size
impl DivAssign<i128> for Size
Source§fn div_assign(&mut self, other: i128)
fn div_assign(&mut self, other: i128)
Performs the
/= operation. Read moreSource§impl DivAssign<i16> for Size
impl DivAssign<i16> for Size
Source§fn div_assign(&mut self, other: i16)
fn div_assign(&mut self, other: i16)
Performs the
/= operation. Read moreSource§impl DivAssign<i32> for Size
impl DivAssign<i32> for Size
Source§fn div_assign(&mut self, other: i32)
fn div_assign(&mut self, other: i32)
Performs the
/= operation. Read moreSource§impl DivAssign<i64> for Size
impl DivAssign<i64> for Size
Source§fn div_assign(&mut self, other: i64)
fn div_assign(&mut self, other: i64)
Performs the
/= operation. Read moreSource§impl DivAssign<i8> for Size
impl DivAssign<i8> for Size
Source§fn div_assign(&mut self, other: i8)
fn div_assign(&mut self, other: i8)
Performs the
/= operation. Read moreSource§impl DivAssign<isize> for Size
impl DivAssign<isize> for Size
Source§fn div_assign(&mut self, other: isize)
fn div_assign(&mut self, other: isize)
Performs the
/= operation. Read moreSource§impl DivAssign<u128> for Size
impl DivAssign<u128> for Size
Source§fn div_assign(&mut self, other: u128)
fn div_assign(&mut self, other: u128)
Performs the
/= operation. Read moreSource§impl DivAssign<u16> for Size
impl DivAssign<u16> for Size
Source§fn div_assign(&mut self, other: u16)
fn div_assign(&mut self, other: u16)
Performs the
/= operation. Read moreSource§impl DivAssign<u32> for Size
impl DivAssign<u32> for Size
Source§fn div_assign(&mut self, other: u32)
fn div_assign(&mut self, other: u32)
Performs the
/= operation. Read moreSource§impl DivAssign<u64> for Size
impl DivAssign<u64> for Size
Source§fn div_assign(&mut self, other: u64)
fn div_assign(&mut self, other: u64)
Performs the
/= operation. Read moreSource§impl DivAssign<u8> for Size
impl DivAssign<u8> for Size
Source§fn div_assign(&mut self, other: u8)
fn div_assign(&mut self, other: u8)
Performs the
/= operation. Read moreSource§impl DivAssign<usize> for Size
impl DivAssign<usize> for Size
Source§fn div_assign(&mut self, other: usize)
fn div_assign(&mut self, other: usize)
Performs the
/= operation. Read moreSource§impl DivAssign for Size
impl DivAssign for Size
Source§fn div_assign(&mut self, other: Self)
fn div_assign(&mut self, other: Self)
Performs the
/= operation. Read moreSource§impl MulAssign<f32> for Size
impl MulAssign<f32> for Size
Source§fn mul_assign(&mut self, other: f32)
fn mul_assign(&mut self, other: f32)
Performs the
*= operation. Read moreSource§impl MulAssign<f64> for Size
impl MulAssign<f64> for Size
Source§fn mul_assign(&mut self, other: f64)
fn mul_assign(&mut self, other: f64)
Performs the
*= operation. Read moreSource§impl MulAssign<i128> for Size
impl MulAssign<i128> for Size
Source§fn mul_assign(&mut self, other: i128)
fn mul_assign(&mut self, other: i128)
Performs the
*= operation. Read moreSource§impl MulAssign<i16> for Size
impl MulAssign<i16> for Size
Source§fn mul_assign(&mut self, other: i16)
fn mul_assign(&mut self, other: i16)
Performs the
*= operation. Read moreSource§impl MulAssign<i32> for Size
impl MulAssign<i32> for Size
Source§fn mul_assign(&mut self, other: i32)
fn mul_assign(&mut self, other: i32)
Performs the
*= operation. Read moreSource§impl MulAssign<i64> for Size
impl MulAssign<i64> for Size
Source§fn mul_assign(&mut self, other: i64)
fn mul_assign(&mut self, other: i64)
Performs the
*= operation. Read moreSource§impl MulAssign<i8> for Size
impl MulAssign<i8> for Size
Source§fn mul_assign(&mut self, other: i8)
fn mul_assign(&mut self, other: i8)
Performs the
*= operation. Read moreSource§impl MulAssign<isize> for Size
impl MulAssign<isize> for Size
Source§fn mul_assign(&mut self, other: isize)
fn mul_assign(&mut self, other: isize)
Performs the
*= operation. Read moreSource§impl MulAssign<u128> for Size
impl MulAssign<u128> for Size
Source§fn mul_assign(&mut self, other: u128)
fn mul_assign(&mut self, other: u128)
Performs the
*= operation. Read moreSource§impl MulAssign<u16> for Size
impl MulAssign<u16> for Size
Source§fn mul_assign(&mut self, other: u16)
fn mul_assign(&mut self, other: u16)
Performs the
*= operation. Read moreSource§impl MulAssign<u32> for Size
impl MulAssign<u32> for Size
Source§fn mul_assign(&mut self, other: u32)
fn mul_assign(&mut self, other: u32)
Performs the
*= operation. Read moreSource§impl MulAssign<u64> for Size
impl MulAssign<u64> for Size
Source§fn mul_assign(&mut self, other: u64)
fn mul_assign(&mut self, other: u64)
Performs the
*= operation. Read moreSource§impl MulAssign<u8> for Size
impl MulAssign<u8> for Size
Source§fn mul_assign(&mut self, other: u8)
fn mul_assign(&mut self, other: u8)
Performs the
*= operation. Read moreSource§impl MulAssign<usize> for Size
impl MulAssign<usize> for Size
Source§fn mul_assign(&mut self, other: usize)
fn mul_assign(&mut self, other: usize)
Performs the
*= operation. Read moreSource§impl MulAssign for Size
impl MulAssign for Size
Source§fn mul_assign(&mut self, other: Self)
fn mul_assign(&mut self, other: Self)
Performs the
*= operation. Read moreSource§impl SubAssign for Size
impl SubAssign for Size
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-= operation. Read moreimpl Copy for Size
impl StructuralPartialEq for Size
Auto Trait Implementations§
impl Freeze for Size
impl RefUnwindSafe for Size
impl Send for Size
impl Sync for Size
impl Unpin for Size
impl UnwindSafe for Size
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]§impl<T> IntoAny for T
impl<T> IntoAny for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more