pub struct LayerCache {
pub graph_generation: u64,
pub cache_generation: u64,
pub scope: Option<String>,
pub result: LayerDetectionResult,
}Expand description
Cache for layer detection results to avoid re-running the full algorithm on unchanged graphs.
Fields§
§graph_generation: u64Graph generation counter at the time the result was computed.
cache_generation: u64Monotonically increasing cache generation counter for invalidation.
scope: Option<String>Scope string used when the result was computed (None = whole graph).
result: LayerDetectionResultCached detection output.
Trait Implementations§
Source§impl Clone for LayerCache
impl Clone for LayerCache
Source§fn clone(&self) -> LayerCache
fn clone(&self) -> LayerCache
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 LayerCache
impl RefUnwindSafe for LayerCache
impl Send for LayerCache
impl Sync for LayerCache
impl Unpin for LayerCache
impl UnsafeUnpin for LayerCache
impl UnwindSafe for LayerCache
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