MCPcopy Create free account
hub / github.com/angular-rust/yew-components / to_option

Function to_option

src/lib.rs:278–283  ·  view source on GitHub ↗
(value: bool)

Source from the content-addressed store, hash-verified

276}
277
278fn to_option(value: bool) -> Option<&'static str> {
279 match value {
280 true => Some("true"),
281 false => None,
282 }
283}
284
285fn to_option_string(s: &str) -> Option<&str> {
286 match s {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected