pub struct Length(pub f32);Expand description
A length, held in points.
ODF writes a length as a number and a unit, and the unit varies by writer and by locale: the same document carries centimetres in its page layout and points in its font sizes. Everything is converted on the way in so that nothing downstream has to ask which unit it is looking at. A point is the unit a renderer wants, being what a font size is already in.
Tuple Fields§
§0: f32Implementations§
Trait Implementations§
impl Copy for Length
Source§impl PartialOrd for Length
impl PartialOrd 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 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