pub struct Pt(pub f64);Expand description
磅:1 pt = 12700 EMU。
文本大小(sz)、行距(lnSpc)、缩进(indent)等文本相关属性
优先以 Pt 为单位。包装为 NewType 后编译器可阻止与 Inches 误混。
Tuple Fields§
§0: f64磅值(f64)。
Implementations§
Trait Implementations§
impl Copy for Pt
Source§impl PartialOrd for Pt
impl PartialOrd for Pt
impl StructuralPartialEq for Pt
Auto Trait Implementations§
impl Freeze for Pt
impl RefUnwindSafe for Pt
impl Send for Pt
impl Sync for Pt
impl Unpin for Pt
impl UnsafeUnpin for Pt
impl UnwindSafe for Pt
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