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>
Trait Implementations§
impl Copy for Length
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 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