MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / into_element

Method into_element

src/ore/src/collections.rs:46–48  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

44 /// This method panics if the collection does not have exactly one element.
45 #[track_caller]
46 fn into_element(self) -> T::Item {
47 self.expect_element(|| "into_element called on collection without exactly one element")
48 }
49
50 /// Consumes the collection and returns its only element.
51 ///

Callers 15

parse_unionFunction · 0.80
backpressureFunction · 0.80
sink_idMethod · 0.80
union_manyMethod · 0.80
runFunction · 0.80
unaryMethod · 0.80
unary_orderedMethod · 0.80
typMethod · 0.80
extract_sef_callFunction · 0.80
plan_identifierFunction · 0.80
new_from_bare_queryMethod · 0.80

Implementers 1

collections.rssrc/ore/src/collections.rs

Calls 1

expect_elementMethod · 0.80

Tested by 8

test_normalized_createFunction · 0.64
to_planMethod · 0.64
test_retain_historyFunction · 0.64
test_expected_spansFunction · 0.64
test_savepointFunction · 0.64