pub struct DimTermRef {
pub target: DimTermTarget,
pub power: Option<Rational>,
pub span: Span,
}Expand description
A resolved dimension term.
Fields§
§target: DimTermTarget§power: Option<Rational>None means exponent 1. Rational exponents (^(1/2)) are kept exact.
span: SpanTrait Implementations§
Source§impl Clone for DimTermRef
impl Clone for DimTermRef
Source§fn clone(&self) -> DimTermRef
fn clone(&self) -> DimTermRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DimTermRef
impl Debug for DimTermRef
impl Eq for DimTermRef
Source§impl PartialEq for DimTermRef
impl PartialEq for DimTermRef
Source§fn eq(&self, other: &DimTermRef) -> bool
fn eq(&self, other: &DimTermRef) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DimTermRef
Auto Trait Implementations§
impl Freeze for DimTermRef
impl RefUnwindSafe for DimTermRef
impl Send for DimTermRef
impl Sync for DimTermRef
impl Unpin for DimTermRef
impl UnsafeUnpin for DimTermRef
impl UnwindSafe for DimTermRef
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.