pub struct ValueLifetime {
pub produced_at: usize,
pub last_used_at: usize,
pub node_id: NodeId,
pub is_output: bool,
pub is_external: bool,
}Expand description
Tracks when each value is first produced and last consumed.
Fields§
§produced_at: usizeInstruction index where this value is produced.
last_used_at: usizeInstruction index where this value is last consumed (inclusive).
node_id: NodeIdNode ID from the original graph.
is_output: boolWhether this value is a graph output (must not be freed).
is_external: boolWhether this value is an input or parameter (externally owned).
Trait Implementations§
Source§impl Clone for ValueLifetime
impl Clone for ValueLifetime
Source§fn clone(&self) -> ValueLifetime
fn clone(&self) -> ValueLifetime
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ValueLifetime
impl RefUnwindSafe for ValueLifetime
impl Send for ValueLifetime
impl Sync for ValueLifetime
impl Unpin for ValueLifetime
impl UnwindSafe for ValueLifetime
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more