MCPcopy Create free account
hub / github.com/ciphermodelabs/ciphercore / get_inline_mode

Function get_inline_mode

ciphercore-base/src/bin/ciphercore_inspect.rs:306–319  ·  view source on GitHub ↗
(mode_val: Option<InlineModeArg>)

Source from the content-addressed store, hash-verified

304}
305
306fn get_inline_mode(mode_val: Option<InlineModeArg>) -> InlineMode {
307 match mode_val {
308 Some(mode) => match mode {
309 InlineModeArg::Simple => InlineMode::Simple,
310 InlineModeArg::DepthOptimizedDefault => {
311 InlineMode::DepthOptimized(DepthOptimizationLevel::Default)
312 }
313 InlineModeArg::DepthOptimizedExtreme => {
314 InlineMode::DepthOptimized(DepthOptimizationLevel::Extreme)
315 }
316 },
317 None => InlineMode::Simple,
318 }
319}
320
321/// This binary prints statistics of a given serialized context.
322///

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected