pub struct PixelSize {
pub width: PixelValue,
pub height: PixelValue,
}Expand description
Represents a parsed pair of 5px, 10px values - useful for border radius calculation
Fields§
§width: PixelValue§height: PixelValueImplementations§
Source§impl PixelSize
impl PixelSize
pub const fn new(width: PixelValue, height: PixelValue) -> Self
pub const fn zero() -> Self
Trait Implementations§
Source§impl Ord for PixelSize
impl Ord for PixelSize
Source§impl PartialOrd for PixelSize
impl PartialOrd for PixelSize
impl Copy for PixelSize
impl Eq for PixelSize
impl StructuralPartialEq for PixelSize
Auto Trait Implementations§
impl Freeze for PixelSize
impl RefUnwindSafe for PixelSize
impl Send for PixelSize
impl Sync for PixelSize
impl Unpin for PixelSize
impl UnwindSafe for PixelSize
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