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

Function to_option_string

src/lib.rs:285–290  ·  view source on GitHub ↗
(s: &str)

Source from the content-addressed store, hash-verified

283}
284
285fn to_option_string(s: &str) -> Option<&str> {
286 match s {
287 "" => None,
288 _ => Some(s),
289 }
290}
291
292fn event_into_details(event: &Event) -> JsValue {
293 JsValue::from(event)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected