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

Method map

crates/data-structures/src/slim_slice.rs:99–104  ·  view source on GitHub ↗

Maps the container part of the error.

(self, with: impl FnOnce(T) -> U)

Source from the content-addressed store, hash-verified

97
98 /// Maps the container part of the error.
99 pub fn map<U>(self, with: impl FnOnce(T) -> U) -> LenTooLong<U> {
100 LenTooLong {
101 len: self.len,
102 too_long: with(self.too_long),
103 }
104 }
105}
106
107/// Try to convert `x` into `B` and forget the container part of the error if any.

Callers 15

into_reducer_nameMethod · 0.45
persistent_insertsMethod · 0.45
insertsMethod · 0.45
persistent_deletesMethod · 0.45
deletesMethod · 0.45
persistent_truncatesMethod · 0.45
table_ids_and_namesMethod · 0.45
inserts_for_tableMethod · 0.45
deletes_for_tableMethod · 0.45
iter_table_entriesMethod · 0.45
with_indexMethod · 0.45
take_snapshotMethod · 0.45

Calls 1

into_iterMethod · 0.45