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

Method from

cel/src/objects.rs:95–102  ·  view source on GitHub ↗
(value: CelMapKey)

Source from the content-addressed store, hash-verified

93
94impl From<CelMapKey> for Key {
95 fn from(value: CelMapKey) -> Self {
96 match value {
97 CelMapKey::Bool(b) => b.into_inner().into(),
98 CelMapKey::Int(i) => i.into_inner().into(),
99 CelMapKey::String(s) => s.into_inner().into(),
100 CelMapKey::UInt(u) => u.into_inner().into(),
101 }
102 }
103}
104
105impl From<Key> for CelMapKey {

Callers

nothing calls this directly

Calls 9

StringClass · 0.85
BoolClass · 0.85
IntClass · 0.85
UIntClass · 0.85
BytesClass · 0.85
MapClass · 0.85
cloneMethod · 0.80
mapMethod · 0.80
into_innerMethod · 0.45

Tested by

no test coverage detected