pub struct Length { /* private fields */ }Implementations§
Source§impl Length
impl Length
pub const fn new(value: f32, unit: LengthUnit) -> Self
pub fn push_to_string(&self, output: &mut String)
pub const fn none() -> Self
pub const fn zero() -> Self
pub const fn into_parts(self) -> (LengthValue, LengthUnit)
pub fn from_parts(value: LengthValue, unit: LengthUnit) -> Option<Self>
pub const fn is_negative(self) -> bool
Trait Implementations§
impl Copy for Length
Source§impl From<MathSpacing> for Length
impl From<MathSpacing> for Length
Source§fn from(spacing: MathSpacing) -> Length
fn from(spacing: MathSpacing) -> Length
Converts to this type from the input type.
impl StructuralPartialEq for Length
Auto Trait Implementations§
impl Freeze for Length
impl RefUnwindSafe for Length
impl Send for Length
impl Sync for Length
impl Unpin for Length
impl UnsafeUnpin for Length
impl UnwindSafe for Length
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