MCPcopy Create free account
hub / github.com/RetypeOS/parcode / visit_inlined

Method visit_inlined

src/visitor.rs:351–359  ·  view source on GitHub ↗

Visits the object as an inlined item within a container (e.g., `Vec`). In this mode, the object does NOT create a new node for itself, as its local data is already serialized in the container's payload (via `serialize_shallow`). However, it must still visit its remote children (chunkable fields) and link them to the container's node. ## When is this called? This method is called when: - The obj

(
        &'a self,
        _graph: &mut TaskGraph<'a>,
        _parent_id: ChunkId,
        _config_override: Option<JobConfig>,
    )

Source from the content-addressed store, hash-verified

349 ///
350 /// Note: Users deriving `ParcodeObject` do not need to implement this manually.
351 fn visit_inlined<'a>(
352 &'a self,
353 _graph: &mut TaskGraph<'a>,
354 _parent_id: ChunkId,
355 _config_override: Option<JobConfig>,
356 ) {
357 // Default: Do nothing (no children to visit or link).
358 // Override this for structs with #[parcode(chunkable)] fields.
359 }
360}

Callers 1

visitMethod · 0.80

Implementers 3

visitor_impls.rssrc/visitor_impls.rs
integration_tests.rstests/integration_tests.rs
memory_test.rsexamples/memory_test.rs

Calls

no outgoing calls

Tested by

no test coverage detected