MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / as_dyn_debug

Method as_dyn_debug

crates/sats/src/array_value.rs:188–210  ·  view source on GitHub ↗

Returns `self` as `&dyn Debug`.

(&self)

Source from the content-addressed store, hash-verified

186impl ArrayValue {
187 /// Returns `self` as `&dyn Debug`.
188 fn as_dyn_debug(&self) -> &dyn fmt::Debug {
189 match self {
190 Self::Sum(v) => v,
191 Self::Product(v) => v,
192 Self::Bool(v) => v,
193 Self::I8(v) => v,
194 Self::U8(v) => v,
195 Self::I16(v) => v,
196 Self::U16(v) => v,
197 Self::I32(v) => v,
198 Self::U32(v) => v,
199 Self::I64(v) => v,
200 Self::U64(v) => v,
201 Self::I128(v) => v,
202 Self::U128(v) => v,
203 Self::I256(v) => v,
204 Self::U256(v) => v,
205 Self::F32(v) => v,
206 Self::F64(v) => v,
207 Self::String(v) => v,
208 Self::Array(v) => v,
209 }
210 }
211}
212impl fmt::Debug for ArrayValue {
213 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {

Callers 1

fmtMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected