pub struct Size {
pub width: f32,
pub height: f32,
}Expand description
A size in logical units (points / DIPs), never physical pixels.
Fields§
§width: f32§height: f32Implementations§
Trait Implementations§
impl Copy for Size
Source§impl From<Size> for WindowSize
impl From<Size> for WindowSize
Source§fn from(size: Size) -> WindowSize
fn from(size: Size) -> WindowSize
Converts to this type from the input type.
Source§impl IntoValue<WindowSize> for Size
impl IntoValue<WindowSize> for Size
fn into_value(self) -> Value<WindowSize>
impl StructuralPartialEq for Size
Auto Trait Implementations§
impl Forget for Size
impl Freeze for Size
impl Move for Size
impl RefUnwindSafe for Size
impl Send for Size
impl Sync for Size
impl Unpin for Size
impl UnsafeUnpin 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