Enum pax_runtime_api::Size
source · pub enum Size {
Pixels(Numeric),
Percent(Numeric),
}
Expand description
A Size value that can be either a concrete pixel value or a percent of parent bounds.
Variants§
Trait Implementations§
source§impl From<Size> for SizePixels
impl From<Size> for SizePixels
source§impl Interpolatable for Size
impl Interpolatable for Size
fn interpolate(&self, other: &Self, t: f64) -> Self
impl Copy for Size
Auto Trait Implementations§
impl RefUnwindSafe for Size
impl Send for Size
impl Sync for Size
impl Unpin 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