MCPcopy Create free account
hub / github.com/cel-rust/cel-rust / clone_as_boxed

Method clone_as_boxed

cel/src/objects.rs:439–444  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

437 }
438
439 fn clone_as_boxed(&self) -> Box<dyn Val> {
440 Box::new(Self {
441 r#type: Type::new_opaque_type(self.val.runtime_type_name().to_owned()),
442 val: self.val.clone(),
443 })
444 }
445}
446
447impl OpaqueVal {

Callers 3

new_structMethod · 0.45
try_fromMethod · 0.45
resolve_valMethod · 0.45

Calls 3

runtime_type_nameMethod · 0.80
cloneMethod · 0.80
to_ownedMethod · 0.45

Tested by

no test coverage detected