Skip to main content

slot_model_prefix

Function slot_model_prefix 

Source
pub fn slot_model_prefix(model_id: u32) -> String
Expand description

Filename prefix identifying all of one model’s slot files: {model_id}__.

Used by purge to remove only the swapped-out model’s files. The trailing __ delimiter is load-bearing: it prevents model 1’s prefix (1__) from matching model 11’s files (11__…).