| 26 | #[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)] |
| 27 | #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] |
| 28 | pub struct EntityRange<T: EntityRef> { |
| 29 | /// Inclusive lower bound of the range. |
| 30 | pub from: T, |
| 31 | |
| 32 | /// Exclusive upper bound of the range. |
| 33 | pub to: T, |
| 34 | } |
| 35 | |
| 36 | impl<T: EntityRef + fmt::Display> fmt::Display for EntityRange<T> { |
| 37 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |
nothing calls this directly
no outgoing calls
no test coverage detected