pub struct SpacingValue(/* private fields */);Expand description
A spacing value stored as scale units.
Implementations§
Source§impl SpacingValue
impl SpacingValue
pub fn new(units: u32) -> SpacingValue
pub fn from_step(step: SpacingStep) -> SpacingValue
pub fn units(self) -> u32
Trait Implementations§
Source§impl Clone for SpacingValue
impl Clone for SpacingValue
Source§fn clone(&self) -> SpacingValue
fn clone(&self) -> SpacingValue
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 moreSource§impl Debug for SpacingValue
impl Debug for SpacingValue
Source§impl Hash for SpacingValue
impl Hash for SpacingValue
Source§impl Ord for SpacingValue
impl Ord for SpacingValue
Source§fn cmp(&self, other: &SpacingValue) -> Ordering
fn cmp(&self, other: &SpacingValue) -> 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 SpacingValue
impl PartialEq for SpacingValue
Source§fn eq(&self, other: &SpacingValue) -> bool
fn eq(&self, other: &SpacingValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SpacingValue
impl PartialOrd for SpacingValue
impl Copy for SpacingValue
impl Eq for SpacingValue
impl StructuralPartialEq for SpacingValue
Auto Trait Implementations§
impl Freeze for SpacingValue
impl RefUnwindSafe for SpacingValue
impl Send for SpacingValue
impl Sync for SpacingValue
impl Unpin for SpacingValue
impl UnsafeUnpin for SpacingValue
impl UnwindSafe for SpacingValue
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