Enum typst_syntax::ast::Unit
source · pub enum Unit {
Pt,
Mm,
Cm,
In,
Rad,
Deg,
Em,
Fr,
Percent,
}
Expand description
Unit of a numeric value.
Variants§
Pt
Points.
Mm
Millimeters.
Cm
Centimeters.
In
Inches.
Rad
Radians.
Deg
Degrees.
Em
Font-relative: 1em
is the same as the font size.
Fr
Fractions: fr
.
Percent
Percentage: %
.
Trait Implementations§
source§impl PartialEq for Unit
impl PartialEq for Unit
impl Copy for Unit
impl Eq for Unit
impl StructuralPartialEq for Unit
Auto Trait Implementations§
impl RefUnwindSafe for Unit
impl Send for Unit
impl Sync for Unit
impl Unpin for Unit
impl UnwindSafe for Unit
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