pub struct UnitExpr { /* private fields */ }Expand description
A parsed UCUM unit expression (abstract syntax tree).
Produced by crate::parse. Exposed for advanced users who want to inspect
or re-display an expression; most callers will use the higher-level
functions (crate::analyze, crate::convert, …) directly.
The fmt::Display implementation re-serializes the expression in
normalized UCUM syntax, dropping redundant parentheses while preserving
those required by UCUM’s left-associative grouping.
Trait Implementations§
impl StructuralPartialEq for UnitExpr
Auto Trait Implementations§
impl Freeze for UnitExpr
impl RefUnwindSafe for UnitExpr
impl Send for UnitExpr
impl Sync for UnitExpr
impl Unpin for UnitExpr
impl UnsafeUnpin for UnitExpr
impl UnwindSafe for UnitExpr
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