MCPcopy Create free account
hub / github.com/DioxusLabs/dioxus-components / remove_option_state

Function remove_option_state

primitives/src/selection.rs:128–130  ·  view source on GitHub ↗
(options: &mut Vec<OptionState>, id: &str)

Source from the content-addressed store, hash-verified

126}
127
128fn remove_option_state(options: &mut Vec<OptionState>, id: &str) {
129 options.retain(|option| option.id != id);
130}
131
132#[cfg(test)]
133mod tests {

Calls

no outgoing calls