MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / try_is_present

Function try_is_present

atomic-core/src/pristine/txn/helpers.rs:228–232  ·  view source on GitHub ↗
(
    mut results: impl Iterator<Item = Result<T, E>>,
)

Source from the content-addressed store, hash-verified

226}
227
228pub(crate) fn try_is_present<T, E>(
229 mut results: impl Iterator<Item = Result<T, E>>,
230) -> Result<bool, E> {
231 Ok(results.next().transpose()?.is_some())
232}
233
234pub(super) fn collect_preload_edges<T, E>(
235 results: impl IntoIterator<Item = Result<T, E>>,

Callers 9

find_blockMethod · 0.85
find_block_endMethod · 0.85
graph_presenceFunction · 0.85
find_blockMethod · 0.85
find_block_endMethod · 0.85
has_vertexMethod · 0.85
has_change_in_graphMethod · 0.85

Calls 1

nextMethod · 0.45