1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// @generated by openehr-codegen from BMM (`C_ORDERED`) — DO NOT EDIT.
// SPDX-FileCopyrightText: Vernum Projecten B.V.
// SPDX-FileCopyrightText: openEHR Foundation
// SPDX-License-Identifier: Apache-2.0
// Hand-written spec functions/invariants live in the sibling `*_impl.rs`.
//! The openEHR `C_ORDERED` spec class, generated from the vendored BMM
//! meta-model.
use cratec_dateCDate;
use cratec_date_timeCDateTime;
use cratec_durationCDuration;
use cratec_integerCInteger;
use cratec_realCReal;
use cratec_timeCTime;
/// Closed subtype set of `C_ORDERED`, dispatched on each payload's `_type`.
///
/// Abstract parent of primitive constrainer classes based on `Ordered` base types, i.e. types like `Integer`, `Real`, and the Date/Time types.
///
/// The model constraint is a List of Intervals, which may include point Intervals, and acts as a efficient and formally tractable representation of any number of point values and/or contiguous intervals of an ordered value domain.
///
/// In its simplest form, the constraint accessor returns just a single point `Interval<T>` object, representing a single value.
///
/// The next simplest form is a single proper `Interval <T>` (i.e. normal two-sided or half-open interval). The most complex form is a list of any combination of point and proper intervals.