MCPcopy Create free account
hub / github.com/hashintel/hash / from

Method from

libs/@local/hashql/eval/src/orchestrator/codec/mod.rs:80–89  ·  view source on GitHub ↗
(value: JsonValueRef<'_>)

Source from the content-addressed store, hash-verified

78
79impl From<JsonValueRef<'_>> for JsonValueKind {
80 fn from(value: JsonValueRef<'_>) -> Self {
81 match value {
82 JsonValueRef::Null => Self::Null,
83 JsonValueRef::Bool(_) => Self::Bool,
84 JsonValueRef::Number(_) => Self::Number,
85 JsonValueRef::String(_) => Self::String,
86 JsonValueRef::Array(_) => Self::Array,
87 JsonValueRef::Object(_) => Self::Object,
88 }
89 }
90}
91
92impl<'value> From<&'value serde_json::Value> for JsonValueRef<'value> {

Callers

nothing calls this directly

Calls 4

BoolClass · 0.85
StringClass · 0.85
NumberClass · 0.50
as_strMethod · 0.45

Tested by

no test coverage detected