MCPcopy Create free account
hub / github.com/biblius/validify / str_slice_to_string

Function str_slice_to_string

derive_tests/tests/in.rs:10–12  ·  view source on GitHub ↗

Use for `in/not_in` validation to convert the slices to strings.

(slice: &[&str])

Source from the content-addressed store, hash-verified

8
9/// Use for `in/not_in` validation to convert the slices to strings.
10pub fn str_slice_to_string(slice: &[&str]) -> Vec<String> {
11 slice.iter().map(|el| String::from(*el)).collect()
12}
13
14#[test]
15fn properly_validates() {

Callers

nothing calls this directly

Calls 1

collectMethod · 0.80

Tested by

no test coverage detected