pub struct Size {
pub width: i64,
pub height: i64,
}Expand description
Size in EMU
Fields§
§width: i64§height: i64Implementations§
Source§impl Size
impl Size
Sourcepub fn from_inches(width: f64, height: f64) -> Self
pub fn from_inches(width: f64, height: f64) -> Self
Create size from inches
Sourcepub fn width_inches(&self) -> f64
pub fn width_inches(&self) -> f64
Get width in inches
Sourcepub fn height_inches(&self) -> f64
pub fn height_inches(&self) -> f64
Get height in inches
Trait Implementations§
impl Copy for Size
impl Eq 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 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