Skip to main content

preload

Function preload 

Source
pub fn preload(strings: &[Vec<u8>]) -> Result<(), String>
Expand description

Makes strings (a snapshot) ids 1.. of this process’s table.

Fails if the table already holds a different string under one of those ids (a process that interned something of its own first); a table that already starts with exactly strings is left as it is, so a second call is harmless.