pub struct DimExpr {
pub terms: Vec<DimExprItem>,
pub span: Span,
}Expand description
A dimension expression: product/quotient of dimension terms.
E.g., Length^3 / Time^2
Fields§
§terms: Vec<DimExprItem>§span: SpanTrait Implementations§
Source§impl FormatEquivalent for DimExpr
impl FormatEquivalent for DimExpr
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 DimExpr
impl RefUnwindSafe for DimExpr
impl Send for DimExpr
impl Sync for DimExpr
impl Unpin for DimExpr
impl UnsafeUnpin for DimExpr
impl UnwindSafe for DimExpr
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