MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / max_depth

Method max_depth

atomic-core/src/output/repo/tree.rs:210–213  ·  view source on GitHub ↗

Set the maximum traversal depth. # Arguments `depth` - Maximum depth (0 = only root level) # Example ```rust use atomic_core::output::repo::TreeCollectOptions; let opts = TreeCollectOptions::new().max_depth(2); assert_eq!(opts.max_depth, Some(2)); ```

(mut self, depth: usize)

Source from the content-addressed store, hash-verified

208 /// assert_eq!(opts.max_depth, Some(2));
209 /// ```
210 pub fn max_depth(mut self, depth: usize) -> Self {
211 self.max_depth = Some(depth);
212 self
213 }
214
215 /// Set whether to collect directories.
216 ///

Callers 4

test_options_max_depthFunction · 0.80
test_options_chainingFunction · 0.80

Calls

no outgoing calls

Tested by 3

test_options_max_depthFunction · 0.64
test_options_chainingFunction · 0.64