MCPcopy Create free account
hub / github.com/GCWing/BitFun / format

Method format

src/crates/execution/tool-contracts/src/element_token.rs:220–222  ·  view source on GitHub ↗

Build the canonical token string for `snapshot_id` / `element_index`. Pure helper, mirrors the [`format_token`] free function but lives on the registry so callers don't have to import it.

(snapshot_id: u32, element_index: usize)

Source from the content-addressed store, hash-verified

218 /// Pure helper, mirrors the [`format_token`] free function but lives on
219 /// the registry so callers don't have to import it.
220 pub fn format(snapshot_id: u32, element_index: usize) -> String {
221 format_token(snapshot_id, element_index)
222 }
223
224 /// Test-only: snapshot count for a pid. Used by the LRU-eviction unit test
225 /// to assert the cap was honoured.

Callers 15

create_session_log_dirFunction · 0.80
build_log_targetsFunction · 0.80
save_ocr_debug_jpegFunction · 0.80
handle_session_actionFunction · 0.80
create_session_log_dirFunction · 0.80
formatDateMethod · 0.80
formatNumberMethod · 0.80
formatRelativeTimeMethod · 0.80
add_commentFunction · 0.80
comment.pyFile · 0.80
create_backupMethod · 0.80
format_timeFunction · 0.80

Calls 1

format_tokenFunction · 0.85

Tested by

no test coverage detected