pub struct Interval {
pub def: usize,
pub use_end: usize,
}Expand description
The half-open-agnostic live interval of a buffer owner, in units of topological node index.
def— the index of the node that produces the value (or0for an included graph input, which is live from the start of execution).use_end— the index of the value’s last use. Two owners whose intervals touch even at a single index (a.def <= b.use_end && b.def <= a.use_end) are considered overlapping and must not share a slot, because at that node the producer’s output and the still-needed input coexist.
Fields§
§def: usize§use_end: usizeImplementations§
Trait Implementations§
impl Copy for Interval
impl Eq for Interval
impl StructuralPartialEq for Interval
Auto Trait Implementations§
impl Freeze for Interval
impl RefUnwindSafe for Interval
impl Send for Interval
impl Sync for Interval
impl Unpin for Interval
impl UnsafeUnpin for Interval
impl UnwindSafe for Interval
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