Skip to main content

join_index

Function join_index 

pub fn join_index(prefix: &str, index: usize) -> String
Expand description

Join a prefix and a numeric index into a dot-separated path ("prefix.3").

Used by the derive to name the elements of a Vec<Tensor> field.