pub enum PixelsOrPercent {
Pixels(u32),
Percentage(Percent),
}Expand description
Pixels, percentages, etc
Variants§
Trait Implementations§
Source§impl Clone for PixelsOrPercent
impl Clone for PixelsOrPercent
Source§fn clone(&self) -> PixelsOrPercent
fn clone(&self) -> PixelsOrPercent
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 PixelsOrPercent
impl Debug for PixelsOrPercent
Source§impl Hash for PixelsOrPercent
impl Hash for PixelsOrPercent
Source§impl Ord for PixelsOrPercent
impl Ord for PixelsOrPercent
Source§fn cmp(&self, other: &PixelsOrPercent) -> Ordering
fn cmp(&self, other: &PixelsOrPercent) -> 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 PixelsOrPercent
impl PartialEq for PixelsOrPercent
Source§impl PartialOrd for PixelsOrPercent
impl PartialOrd for PixelsOrPercent
impl Copy for PixelsOrPercent
impl Eq for PixelsOrPercent
impl StructuralPartialEq for PixelsOrPercent
Auto Trait Implementations§
impl Freeze for PixelsOrPercent
impl RefUnwindSafe for PixelsOrPercent
impl Send for PixelsOrPercent
impl Sync for PixelsOrPercent
impl Unpin for PixelsOrPercent
impl UnwindSafe for PixelsOrPercent
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.