#[repr(C)]pub struct PixelValueSize {
pub width: PixelValue,
pub height: PixelValue,
}Expand description
Two-dimensional size in PixelValue units (width, height) Used for background-size and similar properties
Fields§
§width: PixelValue§height: PixelValueTrait Implementations§
Source§impl Clone for PixelValueSize
impl Clone for PixelValueSize
Source§fn clone(&self) -> PixelValueSize
fn clone(&self) -> PixelValueSize
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 PixelValueSize
impl Debug for PixelValueSize
Source§impl Hash for PixelValueSize
impl Hash for PixelValueSize
Source§impl Ord for PixelValueSize
impl Ord for PixelValueSize
Source§fn cmp(&self, other: &PixelValueSize) -> Ordering
fn cmp(&self, other: &PixelValueSize) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PixelValueSize
impl PartialEq for PixelValueSize
Source§impl PartialOrd for PixelValueSize
impl PartialOrd for PixelValueSize
impl Copy for PixelValueSize
impl Eq for PixelValueSize
impl StructuralPartialEq for PixelValueSize
Auto Trait Implementations§
impl Freeze for PixelValueSize
impl RefUnwindSafe for PixelValueSize
impl Send for PixelValueSize
impl Sync for PixelValueSize
impl Unpin for PixelValueSize
impl UnwindSafe for PixelValueSize
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