pub enum BaseDimId {
Prelude(String),
UserDefined {
dag: DagId,
name: String,
},
}Expand description
A unique identifier for a base dimension.
Identity is name-based rather than auto-incremented, ensuring consistency across per-file compilation units (important for diamond imports).
Variants§
Prelude(String)
Built-in prelude dimension (e.g., “Length”, “Time”, “Mass”).
UserDefined
User-defined dimension, identified by the defining DAG’s identity + name.
Implementations§
Trait Implementations§
impl Eq for BaseDimId
Source§impl Ord for BaseDimId
impl Ord for BaseDimId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for BaseDimId
impl PartialOrd for BaseDimId
impl StructuralPartialEq for BaseDimId
Auto Trait Implementations§
impl Freeze for BaseDimId
impl RefUnwindSafe for BaseDimId
impl Send for BaseDimId
impl Sync for BaseDimId
impl Unpin for BaseDimId
impl UnsafeUnpin for BaseDimId
impl UnwindSafe for BaseDimId
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.