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: PixelValue
Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)