MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / trimmed_optional_string

Function trimmed_optional_string

packages/server/src/api/routes.rs:5432–5436  ·  view source on GitHub ↗
(value: Option<String>)

Source from the content-addressed store, hash-verified

5430}
5431
5432fn trimmed_optional_string(value: Option<String>) -> Option<String> {
5433 value
5434 .map(|value| value.trim().to_owned())
5435 .filter(|value| !value.is_empty())
5436}
5437
5438fn split_filter_values(value: Option<&str>) -> Vec<String> {
5439 value

Callers 1

create_simulatorFunction · 0.85

Calls 1

is_emptyMethod · 0.80

Tested by

no test coverage detected