pub struct NodeInfo<'a> {
pub id: ResId,
pub resource: &'a Resource,
pub dirty: bool,
pub rebuildable: bool,
}Expand description
One resource as ResourceGraph::nodes reports it.
A borrowed view rather than an owned handle: the id names
the node and can be resolved back with ResourceGraph::resolve, while the
resource itself is borrowed from the graph for as long as the walk runs.
Fields§
§id: ResIdThe node’s ResId, the identity ResHandle::id reports.
resource: &'a ResourceThe stored resource.
dirty: boolWhether this resource or one of its dependencies was replaced, and so
whether ResourceGraph::maintain still has a recipe to run.
rebuildable: boolWhether the graph can rebuild this resource from its inputs on its own.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for NodeInfo<'a>
impl<'a> !UnwindSafe for NodeInfo<'a>
impl<'a> Forget for NodeInfo<'a>
impl<'a> Freeze for NodeInfo<'a>
impl<'a> Send for NodeInfo<'a>
impl<'a> Sync for NodeInfo<'a>
impl<'a> Unpin for NodeInfo<'a>
impl<'a> UnsafeUnpin for NodeInfo<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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