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

Method validate

crates/sats/src/de.rs:612–615  ·  view source on GitHub ↗

The input contains an array, but just validate it, don't deserialize.

(self, vec: A)

Source from the content-addressed store, hash-verified

610
611 /// The input contains an array, but just validate it, don't deserialize.
612 fn validate<A: ArrayAccess<'de, Element = T>>(self, vec: A) -> Result<(), A::Error> {
613 let _ = self.visit(vec)?;
614 Ok(())
615 }
616}
617
618/// Provides an [`ArrayVisitor`] with access to each element of the array in the input.

Callers

nothing calls this directly

Implementers 1

de.rscrates/sats/src/de.rs

Calls 2

OkFunction · 0.50
visitMethod · 0.45

Tested by

no test coverage detected