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

Method drain

crates/data-structures/src/error_stream.rs:164–166  ·  view source on GitHub ↗

Returns an iterator over the errors in the stream, consuming the stream.

(&mut self)

Source from the content-addressed store, hash-verified

162
163 /// Returns an iterator over the errors in the stream, consuming the stream.
164 pub fn drain(&mut self) -> impl Iterator<Item = E> + '_ {
165 self.0.drain(..)
166 }
167
168 /// Push an error onto the stream.
169 pub fn push(&mut self, error: E) {

Callers 15

normalize_model_namesFunction · 0.80
add_columns_to_tableMethod · 0.80
hash_deduplicateMethod · 0.80
applyMethod · 0.80
claimMethod · 0.80
drain_pendingMethod · 0.80
report_and_resetMethod · 0.80
as_termtreeFunction · 0.80
encode_v1_batchMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected