pub struct UnitExpr {
pub terms: Vec<UnitExprItem>,
pub span: Span,
}Expand description
A unit expression (for literals and conversion targets).
E.g., km, m/s^2, kg * m / s^2
Fields§
§terms: Vec<UnitExprItem>§span: SpanTrait Implementations§
Source§impl FormatEquivalent for UnitExpr
impl FormatEquivalent for UnitExpr
Source§fn format_equivalent(&self, other: &Self) -> bool
fn format_equivalent(&self, other: &Self) -> bool
Returns
true if self and other are equivalent up to formatting.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