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

Method build

crates/table/src/static_layout.rs:293–300  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

291 }
292
293 fn build(self) -> StaticLayout {
294 let LayoutBuilder { fields } = self;
295 let fields: SmallVec<[_; 3]> = fields.into_iter().filter(|field| !field.is_empty()).collect();
296 let fields: SlimSmallSliceBox<MemcpyField, 3> = fields.into();
297 let bsatn_length = fields.last().map(|last| last.bsatn_offset + last.length).unwrap_or(0);
298
299 StaticLayout { bsatn_length, fields }
300 }
301
302 fn current_field(&self) -> &MemcpyField {
303 self.fields.last().unwrap()

Callers 2

for_row_typeMethod · 0.45
visit_sumMethod · 0.45

Calls 7

unwrap_orMethod · 0.80
lastMethod · 0.80
filterMethod · 0.65
collectMethod · 0.45
into_iterMethod · 0.45
is_emptyMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected