MCPcopy Create free account
hub / github.com/ProgrammingRust/examples / index_to_raw

Method index_to_raw

gap-buffer/src/lib.rs:64–70  ·  view source on GitHub ↗

Return the offset in the buffer of the `index`'th element, taking the gap into account. This does not check whether index is in range, but it never returns an index in the gap.

(&self, index: usize)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

getMethod · 0.80

Calls 1

lenMethod · 0.80

Tested by

no test coverage detected