pub struct DimTerm {
pub name: Spanned<NamePath>,
pub power: Option<Rational>,
pub span: Span,
}Expand description
A single dimension term: ident_path or ident_path ^ INTEGER
Fields§
§name: Spanned<NamePath>§power: Option<Rational>None means exponent 1. Rational exponents (^(1/2)) are kept exact.
span: SpanTrait Implementations§
Source§impl FormatEquivalent for DimTerm
impl FormatEquivalent for DimTerm
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 DimTerm
impl RefUnwindSafe for DimTerm
impl Send for DimTerm
impl Sync for DimTerm
impl Unpin for DimTerm
impl UnsafeUnpin for DimTerm
impl UnwindSafe for DimTerm
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