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

Method validate_next_element

crates/sats/src/de.rs:634–637  ·  view source on GitHub ↗

This returns `Ok(Some(()))` for the next element in the array, or `Ok(None)` if there are no more remaining elements.

(&mut self)

Source from the content-addressed store, hash-verified

632 /// This returns `Ok(Some(()))` for the next element in the array,
633 /// or `Ok(None)` if there are no more remaining elements.
634 fn validate_next_element(&mut self) -> Result<Option<()>, Self::Error> {
635 let opt = self.next_element()?;
636 Ok(opt.map(|_| ()))
637 }
638
639 /// Returns the number of elements remaining in the array, if known.
640 fn size_hint(&self) -> Option<usize> {

Callers 1

array_validateFunction · 0.45

Calls 3

OkFunction · 0.50
next_elementMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected