MCPcopy Create free account
hub / github.com/Amanieu/regalloc3 / EntityRange

Class EntityRange

src/entity/base.rs:28–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
27#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
28pub 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
36impl<T: EntityRef + fmt::Display> fmt::Display for EntityRange<T> {
37 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected