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

Function array_validate

crates/sats/src/de.rs:787–790  ·  view source on GitHub ↗

A basic implementation of `ArrayVisitor::validate`.

(mut access: A)

Source from the content-addressed store, hash-verified

785
786/// A basic implementation of `ArrayVisitor::validate`.
787pub fn array_validate<'de, A: ArrayAccess<'de>>(mut access: A) -> Result<(), A::Error> {
788 while access.validate_next_element()?.is_some() {}
789 Ok(())
790}
791
792/// An implementation of [`ArrayVisitor<'de, T>`] where the output is a `Vec<T>`.
793pub struct BasicVecVisitor;

Callers 1

validateMethod · 0.85

Calls 2

OkFunction · 0.50
validate_next_elementMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…