(heads: Vec<OperationId>)
| 156 | } |
| 157 | |
| 158 | pub(crate) fn from_canonical(heads: Vec<OperationId>) -> Result<Self, OperationCodecError> { |
| 159 | ensure_strictly_sorted(&heads, "operation heads")?; |
| 160 | Ok(Self { heads }) |
| 161 | } |
| 162 | |
| 163 | /// Borrow heads in canonical ascending order. |
| 164 | pub fn as_slice(&self) -> &[OperationId] { |
nothing calls this directly
no test coverage detected