pub struct LayoutUnit(/* private fields */);Implementations§
Source§impl LayoutUnit
impl LayoutUnit
pub const ZERO: LayoutUnit
pub fn from_f64_px(v: f64) -> Self
pub fn from_taffy_f32(v: f32) -> Self
pub fn to_f64_px(self) -> f64
pub fn raw(self) -> i32
Trait Implementations§
Source§impl Add for LayoutUnit
impl Add for LayoutUnit
Source§impl Clone for LayoutUnit
impl Clone for LayoutUnit
Source§fn clone(&self) -> LayoutUnit
fn clone(&self) -> LayoutUnit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LayoutUnit
Source§impl Debug for LayoutUnit
impl Debug for LayoutUnit
Source§impl Default for LayoutUnit
impl Default for LayoutUnit
Source§fn default() -> LayoutUnit
fn default() -> LayoutUnit
Returns the “default value” for a type. Read more
impl Eq for LayoutUnit
Source§impl Ord for LayoutUnit
impl Ord for LayoutUnit
Source§fn cmp(&self, other: &LayoutUnit) -> Ordering
fn cmp(&self, other: &LayoutUnit) -> Ordering
1.21.0 (const: unstable) · 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 LayoutUnit
impl PartialEq for LayoutUnit
Source§fn eq(&self, other: &LayoutUnit) -> bool
fn eq(&self, other: &LayoutUnit) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for LayoutUnit
impl PartialOrd for LayoutUnit
impl StructuralPartialEq for LayoutUnit
Auto Trait Implementations§
impl Freeze for LayoutUnit
impl RefUnwindSafe for LayoutUnit
impl Send for LayoutUnit
impl Sync for LayoutUnit
impl Unpin for LayoutUnit
impl UnsafeUnpin for LayoutUnit
impl UnwindSafe for LayoutUnit
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
Compares
self with key and returns true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.