pub struct TypeFamily {
pub repository: Option<String>,
pub spec: String,
pub effective: EffectiveDate,
pub name: String,
}Expand description
Root of a custom type’s extension chain: the spec version that declares the root type,
and its name. Types share a unit family only when they share this root declaration;
a local money and an imported pricing.money are different families. Two versions
of pricing declare different pricing <date>.money families; values from different
versions do not mix. Interface drift across unpinned versions compares structure with
LemmaType::same_interface, which ignores the family’s effective date.
Fields§
§repository: Option<String>§spec: String§effective: EffectiveDate§name: StringImplementations§
Source§impl TypeFamily
impl TypeFamily
Sourcepub fn without_effective(&self) -> Self
pub fn without_effective(&self) -> Self
Family identity with the version erased (interface comparisons only).
Trait Implementations§
Source§impl Clone for TypeFamily
impl Clone for TypeFamily
Source§impl Debug for TypeFamily
impl Debug for TypeFamily
Source§impl Display for TypeFamily
[<repo> ]<spec>[ <date>].<type>: the root type named with its declaring spec version.
impl Display for TypeFamily
[<repo> ]<spec>[ <date>].<type>: the root type named with its declaring spec version.
impl Eq for TypeFamily
Source§impl Hash for TypeFamily
impl Hash for TypeFamily
Source§impl Ord for TypeFamily
impl Ord for TypeFamily
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for TypeFamily
impl PartialEq for TypeFamily
Source§impl PartialOrd for TypeFamily
impl PartialOrd for TypeFamily
Source§impl Serialize for TypeFamily
impl Serialize for TypeFamily
impl StructuralPartialEq for TypeFamily
Auto Trait Implementations§
impl Forget for TypeFamily
impl Freeze for TypeFamily
impl Move for TypeFamily
impl RefUnwindSafe for TypeFamily
impl Send for TypeFamily
impl Sync for TypeFamily
impl Unpin for TypeFamily
impl UnsafeUnpin for TypeFamily
impl UnwindSafe for TypeFamily
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.