MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / extend_path

Function extend_path

ra-rpc/src/openapi.rs:195–200  ·  view source on GitHub ↗
(base: &[i32], field_number: i32, index: i32)

Source from the content-addressed store, hash-verified

193}
194
195fn extend_path(base: &[i32], field_number: i32, index: i32) -> Vec<i32> {
196 let mut path = base.to_vec();
197 path.push(field_number);
198 path.push(index);
199 path
200}
201
202/// Final resources consumed by the Rocket helper.
203#[derive(Clone)]

Callers 2

register_messageMethod · 0.85
register_serviceMethod · 0.85

Calls 1

to_vecMethod · 0.80

Tested by

no test coverage detected