#[repr(C)]pub struct PhysicalSize {
pub width: f32,
pub height: f32,
}Expand description
Physical size (always width x height, regardless of writing mode)
Fields§
§width: f32§height: f32Implementations§
Source§impl PhysicalSize
impl PhysicalSize
pub const fn new(width: f32, height: f32) -> Self
Sourcepub const fn to_logical(self) -> CssLogicalSize
pub const fn to_logical(self) -> CssLogicalSize
Convert to logical size in horizontal writing mode
Trait Implementations§
Source§impl Clone for PhysicalSize
impl Clone for PhysicalSize
Source§fn clone(&self) -> PhysicalSize
fn clone(&self) -> PhysicalSize
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PhysicalSize
impl Debug for PhysicalSize
Source§impl PartialEq for PhysicalSize
impl PartialEq for PhysicalSize
impl Copy for PhysicalSize
impl StructuralPartialEq for PhysicalSize
Auto Trait Implementations§
impl Freeze for PhysicalSize
impl RefUnwindSafe for PhysicalSize
impl Send for PhysicalSize
impl Sync for PhysicalSize
impl Unpin for PhysicalSize
impl UnwindSafe for PhysicalSize
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