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

Function get_inline_mode

ciphercore-base/src/bin/ciphercore_compile.rs:149–159  ·  view source on GitHub ↗

Returns internal inline mode based on the user-given argument # Argument `mode` - user-given inline mode argument # Returns Inline mode

(mode: InlineModeArg)

Source from the content-addressed store, hash-verified

147///
148/// Inline mode
149fn get_inline_mode(mode: InlineModeArg) -> InlineMode {
150 match mode {
151 InlineModeArg::Simple => InlineMode::Simple,
152 InlineModeArg::DepthOptimizedDefault => {
153 InlineMode::DepthOptimized(DepthOptimizationLevel::Default)
154 }
155 InlineModeArg::DepthOptimizedExtreme => {
156 InlineMode::DepthOptimized(DepthOptimizationLevel::Extreme)
157 }
158 }
159}
160
161/// Returns an unseeded simple evaluator instance
162///

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected